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

Commit 2d135ab1 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Bind wallpaper at later boot phase." into nyc-dev

parents 33f576b9 383f9fed
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -128,6 +128,8 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
        public void onBootPhase(int phase) {
        public void onBootPhase(int phase) {
            if (phase == SystemService.PHASE_ACTIVITY_MANAGER_READY) {
            if (phase == SystemService.PHASE_ACTIVITY_MANAGER_READY) {
                mService.systemReady();
                mService.systemReady();
            } else if (phase == SystemService.PHASE_THIRD_PARTY_APPS_CAN_START) {
                mService.switchUser(UserHandle.USER_SYSTEM, null);
            }
            }
        }
        }


@@ -850,9 +852,6 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
                Slog.i(TAG, "Nondefault wallpaper component; gracefully ignoring");
                Slog.i(TAG, "Nondefault wallpaper component; gracefully ignoring");
            }
            }
        }
        }
        switchWallpaper(wallpaper, null);
        wallpaper.wallpaperObserver = new WallpaperObserver(wallpaper);
        wallpaper.wallpaperObserver.startWatching();


        IntentFilter userFilter = new IntentFilter();
        IntentFilter userFilter = new IntentFilter();
        userFilter.addAction(Intent.ACTION_USER_REMOVED);
        userFilter.addAction(Intent.ACTION_USER_REMOVED);