useCustomPrefsStyle true
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
android:key="useNewSettings"
|
||||
android:title="@string/useNewSettings_title"/>
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:defaultValue="true"
|
||||
android:key="useCustomPrefsStyle"
|
||||
android:title="useCustomPrefsStyle"/>
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
|
||||
Reference in New Issue
Block a user