Skip to content

Commit

Permalink
change booleans to numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Sep 25, 2023
1 parent 378d623 commit f1ea306
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LegacySettingsProvider : ContentProvider() {
val sharedPreferences = context!!.getSharedPreferences("FlutterSharedPreferences", Context.MODE_PRIVATE)
val allEntries: Map<String, *> = sharedPreferences.getAll()
for ((key, value) in allEntries.entries) {
json.put(key.replace("flutter.", ""), value)
json.put(key.replace("flutter.", ""), if (value is Boolean) if (value) 1 else 0 else value)
}

// Load keystore
Expand Down

0 comments on commit f1ea306

Please sign in to comment.