From a8e19f58d88e098adf797cf4af01dc180e8a560e Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Tue, 26 Nov 2024 20:11:11 +0530 Subject: [PATCH] Replace abc_scrubber_primary_mtrl_alpha with a custom seekbar scrubber Signed-off-by: baalajimaestro --- .../main/java/org/schabi/newpipe/views/MarkableSeekBar.java | 3 +-- app/src/main/res/drawable/seekbar_scrubber_primary.xml | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/drawable/seekbar_scrubber_primary.xml diff --git a/app/src/main/java/org/schabi/newpipe/views/MarkableSeekBar.java b/app/src/main/java/org/schabi/newpipe/views/MarkableSeekBar.java index 82dcda0c6..4ca1ae848 100644 --- a/app/src/main/java/org/schabi/newpipe/views/MarkableSeekBar.java +++ b/app/src/main/java/org/schabi/newpipe/views/MarkableSeekBar.java @@ -74,11 +74,10 @@ public class MarkableSeekBar extends AppCompatSeekBar { markerDrawables.add(layerDrawable); for (final SeekBarMarker seekBarMarker : seekBarMarkers) { - @SuppressLint("PrivateResource") final Drawable markerDrawable = ContextCompat.getDrawable( getContext(), - R.drawable.abc_scrubber_primary_mtrl_alpha); + R.drawable.seekbar_scrubber_primary); final PorterDuffColorFilter colorFilter = new PorterDuffColorFilter(seekBarMarker.color, PorterDuff.Mode.SRC_IN); diff --git a/app/src/main/res/drawable/seekbar_scrubber_primary.xml b/app/src/main/res/drawable/seekbar_scrubber_primary.xml new file mode 100644 index 000000000..00bc82744 --- /dev/null +++ b/app/src/main/res/drawable/seekbar_scrubber_primary.xml @@ -0,0 +1,5 @@ + + + +