mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-31 22:27:33 +01:00
refactor(youtube/settings): increase fingerprint robustness
This commit is contained in:
parent
b47a781ba7
commit
6d32f1ebc2
@ -3,13 +3,6 @@ package app.revanced.integrations.utils;
|
|||||||
public class ThemeHelper {
|
public class ThemeHelper {
|
||||||
private static int themeValue;
|
private static int themeValue;
|
||||||
|
|
||||||
public static void setTheme(int value) {
|
|
||||||
if (themeValue != value) {
|
|
||||||
themeValue = value;
|
|
||||||
LogHelper.printDebug(() -> "Theme value: " + themeValue);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setTheme(Object value) {
|
public static void setTheme(Object value) {
|
||||||
final int newOrdinalValue = ((Enum) value).ordinal();
|
final int newOrdinalValue = ((Enum) value).ordinal();
|
||||||
if (themeValue != newOrdinalValue) {
|
if (themeValue != newOrdinalValue) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user