kopia lustrzana https://github.com/ge0rg/aprsdroid
Fix export/import crash
Fix map_zoom export import problem by excluding it on export.pull/369/head
rodzic
f7d12ecaa6
commit
ec0e3224da
|
@ -26,7 +26,9 @@ class PrefsAct extends PreferenceActivity {
|
|||
try {
|
||||
directory.mkdirs()
|
||||
val prefs = PreferenceManager.getDefaultSharedPreferences(this)
|
||||
val json = new JSONObject(prefs.getAll)
|
||||
val allPrefs = prefs.getAll
|
||||
allPrefs.remove("map_zoom")
|
||||
val json = new JSONObject(allPrefs)
|
||||
val fo = new PrintWriter(file)
|
||||
fo.println(json.toString(2))
|
||||
fo.close()
|
||||
|
|
Ładowanie…
Reference in New Issue