From bc5a401e0ed693cdf7442bb4834fc339899287f9 Mon Sep 17 00:00:00 2001
From: gdlbo <41114720+gdlbo@users.noreply.github.com>
Date: Sat, 18 Mar 2023 11:37:43 +0300
Subject: [PATCH] useCustomPrefsStyle true
---
app/src/main/java/ru/vtosters/lite/hooks/SwitchHook.java | 4 ++--
smali/res/xml/preferences_debug.xml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/src/main/java/ru/vtosters/lite/hooks/SwitchHook.java b/app/src/main/java/ru/vtosters/lite/hooks/SwitchHook.java
index 38cb322ae..60dc87f85 100644
--- a/app/src/main/java/ru/vtosters/lite/hooks/SwitchHook.java
+++ b/app/src/main/java/ru/vtosters/lite/hooks/SwitchHook.java
@@ -37,7 +37,7 @@ public class SwitchHook {
public static void setSwitchCompatColors(SwitchCompat switchCompat, Context ctx) {
- if (Preferences.getBoolValue("useCustomPrefsStyle", false)) {
+ if (Preferences.getBoolValue("useCustomPrefsStyle", true)) {
switchCompat.setThumbDrawable(setTintList(getCustomThumb(), new ColorStateList(createColorStateList(), getSwitchColors(ctx))));
switchCompat.setTrackDrawable(setTintList(getCustomTrack(), new ColorStateList(createColorStateList(), getTrackColors())));
} else {
@@ -47,7 +47,7 @@ public class SwitchHook {
}
public static void setSwitchColors(Switch drawableCompat, Context ctx) {
- if (Preferences.getBoolValue("useCustomPrefsStyle", false)) {
+ if (Preferences.getBoolValue("useCustomPrefsStyle", true)) {
drawableCompat.setThumbDrawable(setTintList(getCustomThumb(), new ColorStateList(createColorStateList(), getSwitchColors(ctx))));
drawableCompat.setTrackDrawable(setTintList(getCustomTrack(), new ColorStateList(createColorStateList(), getTrackColors())));
} else {
diff --git a/smali/res/xml/preferences_debug.xml b/smali/res/xml/preferences_debug.xml
index 2ad88e31e..df9339fc7 100644
--- a/smali/res/xml/preferences_debug.xml
+++ b/smali/res/xml/preferences_debug.xml
@@ -39,7 +39,7 @@
android:key="useNewSettings"
android:title="@string/useNewSettings_title"/>