fix(export-settings): remove boolean workaround

This commit is contained in:
Benjamin Halko 2023-10-05 09:42:23 -07:00 committed by oSumAtrIX
parent 8fd4fe0e55
commit 2ad106f7d7
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -30,10 +30,7 @@ class ExportSettingsActivity : Activity() {
val sharedPreferences = getSharedPreferences("FlutterSharedPreferences", Context.MODE_PRIVATE)
val allEntries: Map<String, *> = sharedPreferences.getAll()
for ((key, value) in allEntries.entries) {
json.put(
key.replace("flutter.", ""),
if (value is Boolean) if (value) 1 else 0 else value
)
json.put(key.replace("flutter.", ""), value)
}
// Load keystore