mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-25 12:45:12 +00:00
test
This commit is contained in:
parent
3499f3f1bc
commit
8357592161
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue