This commit is contained in:
X1nto 2020-05-02 15:23:56 +04:00
parent 3499f3f1bc
commit 8357592161
1 changed files with 2 additions and 2 deletions

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