test
This commit is contained in:
parent
3499f3f1bc
commit
8357592161
|
@ -23,7 +23,7 @@ open class ThemeActivity : AppCompatActivity() {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
|
||||||
pref = PreferenceManager.getDefaultSharedPreferences(this)
|
pref = PreferenceManager.getDefaultSharedPreferences(this)
|
||||||
currentTheme = pref.getString("theme_mode", "").toString()
|
currentTheme = pref.getString("theme_mode", "LIGHT").toString()
|
||||||
|
|
||||||
setFinalTheme(currentTheme)
|
setFinalTheme(currentTheme)
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ open class ThemeActivity : AppCompatActivity() {
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
val theme = pref.getString("theme_mode", "")
|
val theme = pref.getString("theme_mode", "LIGHT")
|
||||||
|
|
||||||
//if for some weird reasons we get invalid
|
//if for some weird reasons we get invalid
|
||||||
//theme, recreate activity
|
//theme, recreate activity
|
||||||
|
|
Loading…
Reference in New Issue