SponsorBlock: Made the FocusAwareSeekBar extend MarkableSeekBar

SponsorBlock's sponsor times overlay and Android TV support were developed in
parallel, this merges the changes of both.
This commit is contained in:
polymorphicshade 2020-05-14 21:30:45 -06:00
parent d67a8e1ae2
commit d30178f68f
2 changed files with 2 additions and 4 deletions

View file

@ -24,8 +24,6 @@ import android.view.KeyEvent;
import android.view.ViewTreeObserver; import android.view.ViewTreeObserver;
import android.widget.SeekBar; import android.widget.SeekBar;
import androidx.appcompat.widget.AppCompatSeekBar;
import org.schabi.newpipe.util.AndroidTvUtils; import org.schabi.newpipe.util.AndroidTvUtils;
/** /**
@ -33,7 +31,7 @@ import org.schabi.newpipe.util.AndroidTvUtils;
* (onStartTrackingTouch/onStopTrackingTouch), so existing code does not need to be changed to * (onStartTrackingTouch/onStopTrackingTouch), so existing code does not need to be changed to
* work with it. * work with it.
*/ */
public final class FocusAwareSeekBar extends AppCompatSeekBar { public final class FocusAwareSeekBar extends MarkableSeekBar {
private NestedListener listener; private NestedListener listener;
private ViewTreeObserver treeObserver; private ViewTreeObserver treeObserver;

View file

@ -455,7 +455,7 @@
tools:text="1:06:29"/> tools:text="1:06:29"/>
<org.schabi.newpipe.views.MarkableSeekBar <org.schabi.newpipe.views.FocusAwareSeekBar
android:id="@+id/playbackSeekBar" android:id="@+id/playbackSeekBar"
style="@style/Widget.AppCompat.SeekBar" style="@style/Widget.AppCompat.SeekBar"
android:layout_width="0dp" android:layout_width="0dp"