Apply sync on launch to widgets

This commit is contained in:
M66B
2021-03-29 09:18:04 +02:00
parent 9ec584f08e
commit 77653d298b
6 changed files with 15 additions and 1 deletions

View File

@@ -163,6 +163,7 @@ public class ActivityWidget extends ActivityBase {
editor.putBoolean("widget." + appWidgetId + ".semi", cbSemiTransparent.isChecked());
editor.putInt("widget." + appWidgetId + ".background", btnColor.getColor());
editor.putInt("widget." + appWidgetId + ".layout", rbNew.isChecked() ? 1 : 0);
editor.putInt("widget." + appWidgetId + ".version", BuildConfig.VERSION_CODE);
editor.apply();
Widget.init(ActivityWidget.this, appWidgetId);