mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 09:07:47 +01:00
fix(export-settings): remove boolean workaround
This commit is contained in:
parent
8fd4fe0e55
commit
2ad106f7d7
1 changed files with 1 additions and 4 deletions
|
@ -30,10 +30,7 @@ class ExportSettingsActivity : Activity() {
|
||||||
val sharedPreferences = getSharedPreferences("FlutterSharedPreferences", Context.MODE_PRIVATE)
|
val sharedPreferences = getSharedPreferences("FlutterSharedPreferences", Context.MODE_PRIVATE)
|
||||||
val allEntries: Map<String, *> = sharedPreferences.getAll()
|
val allEntries: Map<String, *> = sharedPreferences.getAll()
|
||||||
for ((key, value) in allEntries.entries) {
|
for ((key, value) in allEntries.entries) {
|
||||||
json.put(
|
json.put(key.replace("flutter.", ""), value)
|
||||||
key.replace("flutter.", ""),
|
|
||||||
if (value is Boolean) if (value) 1 else 0 else value
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load keystore
|
// Load keystore
|
||||||
|
|
Loading…
Reference in a new issue