From 7dc93a0ea131e147a9bd97660bc3c240fcc87b8c Mon Sep 17 00:00:00 2001 From: X1nto Date: Sat, 2 May 2020 01:07:52 +0400 Subject: [PATCH] experiments with shit android 6 v2 --- .../vanced/manager/ui/fragments/SettingsFragment.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/vanced/manager/ui/fragments/SettingsFragment.kt b/app/src/main/java/com/vanced/manager/ui/fragments/SettingsFragment.kt index 3fc4be70..e3c3ee88 100644 --- a/app/src/main/java/com/vanced/manager/ui/fragments/SettingsFragment.kt +++ b/app/src/main/java/com/vanced/manager/ui/fragments/SettingsFragment.kt @@ -33,31 +33,31 @@ class SettingsFragment : PreferenceFragmentCompat() { when (themeSwitch.value){ "LIGHT" -> { - activity?.setTheme(R.style.LightTheme_Blue) + //activity?.setTheme(R.style.LightTheme_Blue) //activity?.recreate() recreate() } "DARK" -> { - activity?.setTheme(R.style.DarkTheme_Blue) + //activity?.setTheme(R.style.DarkTheme_Blue) //activity?.recreate() recreate() } "FOLLOW" -> { when (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) { Configuration.UI_MODE_NIGHT_YES ->{ - activity?.setTheme(R.style.DarkTheme_Blue) + //activity?.setTheme(R.style.DarkTheme_Blue) //activity?.recreate() recreate() } Configuration.UI_MODE_NIGHT_NO -> { - activity?.setTheme(R.style.LightTheme_Blue) + //activity?.setTheme(R.style.LightTheme_Blue) //activity?.recreate() recreate() } } } else -> { - activity?.setTheme(R.style.LightTheme_Blue) + //activity?.setTheme(R.style.LightTheme_Blue) //activity?.recreate() recreate() }