Skip importing widget settings

This commit is contained in:
M66B
2019-11-09 13:59:34 +01:00
parent 3ccdf10bb1
commit 582223be97
2 changed files with 5 additions and 0 deletions

View File

@@ -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());