diff --git a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java index 4f2cc638110e256b32a33767e2cd6ed3c79693db..d5891220c1399dfc600269a56ed56549abd60525 100644 --- a/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java +++ b/app/src/main/java/foundation/e/drive/widgets/EDriveWidget.java @@ -103,7 +103,7 @@ public class EDriveWidget extends AppWidgetProvider { return convertedData; } - public void updateAppWidget(@NonNull final Context context) { + public synchronized void updateAppWidget(@NonNull final Context context) { final AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); final ComponentName provider = new ComponentName(context, getClass()); int[] appWidgetIds = appWidgetManager.getAppWidgetIds(provider); @@ -113,7 +113,7 @@ public class EDriveWidget extends AppWidgetProvider { } } - public void updateAppWidget(@NonNull final Context context, @NonNull final AppWidgetManager appWidgetManager, + private void updateAppWidget(@NonNull final Context context, @NonNull final AppWidgetManager appWidgetManager, final int appWidgetId) { final AccountManager accountManager = AccountManager.get(context);