Skip importing widget settings

pull/167/head
M66B 5 years ago
parent 3ccdf10bb1
commit 582223be97

@ -878,6 +878,9 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
if ("alert_once".equals(key))
continue;
if (key != null && key.startsWith("widget."))
continue;
Object value = jsetting.get("value");
String type = jsetting.optString("type");
Log.i("Setting name=" + key + " value=" + value + " type=" + type);

@ -83,6 +83,8 @@ public class ActivityWidgetUnified extends ActivityBase {
SharedPreferences.Editor editor = prefs.edit();
if (account != null && account.id > 0)
editor.putString("widget." + appWidgetId + ".name", account.name);
else
editor.remove("widget." + appWidgetId + ".name");
editor.putLong("widget." + appWidgetId + ".account", account == null ? -1L : account.id);
editor.putBoolean("widget." + appWidgetId + ".unseen", cbUnseen.isChecked());
editor.putBoolean("widget." + appWidgetId + ".flagged", cbFlagged.isChecked());

Loading…
Cancel
Save