diff options
| author | 2016-04-13 16:08:15 -0600 | |
|---|---|---|
| committer | 2016-04-13 16:08:17 -0600 | |
| commit | 383f9fedd6c3423d7a8abed21151a89808fa0fab (patch) | |
| tree | 41c0df4034e04a42c0bdfced2fd317b923da403d | |
| parent | 3c5870912b6dc20e13c3af5e078a600b88904e99 (diff) | |
Bind wallpaper at later boot phase.
We need to wait until third-party apps can start before we try
binding to the wallpaper.
Bug: 28166684
Change-Id: I6ef559a667104e830e97da68b437ff592816f6f3
| -rw-r--r-- | services/core/java/com/android/server/wallpaper/WallpaperManagerService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java b/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java index ca1a7ac80259..10e30ed48da8 100644 --- a/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +++ b/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java @@ -128,6 +128,8 @@ public class WallpaperManagerService extends IWallpaperManager.Stub { public void onBootPhase(int phase) { if (phase == SystemService.PHASE_ACTIVITY_MANAGER_READY) { 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"); } } - switchWallpaper(wallpaper, null); - wallpaper.wallpaperObserver = new WallpaperObserver(wallpaper); - wallpaper.wallpaperObserver.startWatching(); IntentFilter userFilter = new IntentFilter(); userFilter.addAction(Intent.ACTION_USER_REMOVED); |