Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 248de37e authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Add synchronized to avoid a race condition" into gingerbread

parents 6c30e1a5 81007e33
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -126,8 +126,10 @@ class AppWidgetService extends IAppWidgetService.Stub
    public void systemReady(boolean safeMode) {
        mSafeMode = safeMode;

        synchronized (mAppWidgetIds) {
            loadAppWidgetList();
            loadStateLocked();
        }

        // Register for the boot completed broadcast, so we can send the
        // ENABLE broacasts.  If we try to send them now, they time out,