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

Commit 455a3492 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Merge "Skip app widget config changes when user locked." into nyc-dev

am: 5c2183a8

* commit '5c2183a8':
  Skip app widget config changes when user locked.
parents ae1ed42c 5c2183a8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -332,7 +332,12 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
                for (int i = N - 1; i >= 0; i--) {
                    Provider provider = installedProviders.get(i);

                    ensureGroupStateLoadedLocked(provider.getUserId());
                    final int userId = provider.getUserId();
                    if (!mUserManager.isUserUnlocked(userId) ||
                            isProfileWithLockedParent(userId)) {
                        continue;
                    }
                    ensureGroupStateLoadedLocked(userId);

                    if (!removedProviders.contains(provider.id)) {
                        final boolean changed = updateProvidersForPackageLocked(