Skip to content

Commit

Permalink
Clean settings before import
Browse files Browse the repository at this point in the history
  • Loading branch information
romanvht committed Dec 24, 2024
1 parent 324a83d commit 4a3c532
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ class SettingsActivity : AppCompatActivity() {

R.id.action_reset_settings -> {
val prefs = getPreferences()
val currentLanguage = prefs.getString("language", "system")
val editor = prefs.edit()

editor.clear()
editor.putString("language", currentLanguage)
editor.apply()

recreate()
Expand Down Expand Up @@ -112,6 +110,7 @@ class SettingsActivity : AppCompatActivity() {

json.remove("app_package")
json.remove("app_version")
editor.clear()

json.keys().forEach { key ->
when (key) {
Expand Down

0 comments on commit 4a3c532

Please sign in to comment.