0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-25 12:45:12 +00:00
This commit is contained in:
X1nto 2020-05-02 15:23:56 +04:00
parent 3499f3f1bc
commit 8357592161

View file

@ -23,7 +23,7 @@ open class ThemeActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
pref = PreferenceManager.getDefaultSharedPreferences(this)
currentTheme = pref.getString("theme_mode", "").toString()
currentTheme = pref.getString("theme_mode", "LIGHT").toString()
setFinalTheme(currentTheme)
@ -34,7 +34,7 @@ open class ThemeActivity : AppCompatActivity() {
override fun onResume() {
super.onResume()
val theme = pref.getString("theme_mode", "")
val theme = pref.getString("theme_mode", "LIGHT")
//if for some weird reasons we get invalid
//theme, recreate activity