Skip to content

Commit

Permalink
Update GramophoneApplication.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 authored Jul 12, 2024
1 parent f107377 commit b04f163
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class GramophoneApplication : Application(), SingletonImageLoader.Factory,
Thread {
val prefs = PreferenceManager.getDefaultSharedPreferences(this)
// Set application theme when launching.
when (prefs.getStringStrict("theme_mode", "0")) {
when (prefs.getString("theme_mode", "0")) {
"0" -> {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM)
}
Expand Down Expand Up @@ -163,4 +163,4 @@ class GramophoneApplication : Application(), SingletonImageLoader.Factory,
startActivity(intent)
exitProcess(10)
}
}
}

0 comments on commit b04f163

Please sign in to comment.