Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit ec4cdc5

Browse files
fix seekbar not hiding if custom seekbar color is off
1 parent 021ef79 commit ec4cdc5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/src/main/java/app/revanced/integrations/youtube/patches/theme/SeekbarColorPatch.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,14 @@ public static boolean playerSeekbarGradientEnabled(boolean original) {
9090
* If {@link Settings#HIDE_SEEKBAR_THUMBNAIL} is enabled, this returns a fully transparent color.
9191
*/
9292
public static int getLithoColor(int colorValue) {
93-
if (SEEKBAR_CUSTOM_COLOR_ENABLED && colorValue == ORIGINAL_SEEKBAR_COLOR) {
93+
if (colorValue == ORIGINAL_SEEKBAR_COLOR) {
9494
if (Settings.HIDE_SEEKBAR_THUMBNAIL.get()) {
9595
return 0x00000000;
9696
}
97-
return getSeekbarColorValue(ORIGINAL_SEEKBAR_COLOR);
97+
98+
if (SEEKBAR_CUSTOM_COLOR_ENABLED) {
99+
return getSeekbarColorValue(ORIGINAL_SEEKBAR_COLOR);
100+
}
98101
}
99102
return colorValue;
100103
}

0 commit comments

Comments
 (0)