Bugfix: choosen Theme isnot displayed when setting is opened.
This commit is contained in:
1 parent
be66a50541
commit
65581ae257
1 file changed
+1
-1
@@ -409,7 +409,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
builder.setTitle(getString(R.string.choose_theme_text))
|
builder.setTitle(getString(R.string.choose_theme_text))
|
||||||
val styles = arrayOf("Light", "Dark", "System default")
|
val styles = arrayOf("Light", "Dark", "System default")
|
||||||
|
|
||||||
val checkedItem = this.getSharedPreferences("", Context.MODE_PRIVATE).getInt("Theme", 2)
|
val checkedItem = this.getSharedPreferences("Settings", Context.MODE_PRIVATE).getInt("Theme", 2)
|
||||||
|
|
||||||
val prefs = this.getSharedPreferences("Settings", Context.MODE_PRIVATE).edit()
|
val prefs = this.getSharedPreferences("Settings", Context.MODE_PRIVATE).edit()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user