diff options
| author | Justin Mattson <jmatt@google.com> | 2012-04-11 15:55:36 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-04-11 15:55:36 -0700 |
| commit | 4ea7bfea312e4ddf815eabdef04d3f3b4878a51a (patch) | |
| tree | 3b1def6ef232e9e8b880d41294f44114566bff77 | |
| parent | 7d4a2ad8c776207c719d186a33a68a164761f11c (diff) | |
| parent | 4233f262499aa1dea332fe60d7a30ab4cdc4e3ed (diff) | |
| download | frameworks_base-4ea7bfea312e4ddf815eabdef04d3f3b4878a51a.zip frameworks_base-4ea7bfea312e4ddf815eabdef04d3f3b4878a51a.tar.gz frameworks_base-4ea7bfea312e4ddf815eabdef04d3f3b4878a51a.tar.bz2 | |
Merge "Check if WallpaperService is enabled" into ics-aah
| -rw-r--r-- | services/java/com/android/server/wm/WindowManagerService.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 1c1e88f..5c295d3 100644 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -4874,7 +4874,11 @@ public class WindowManagerService extends IWindowManager.Stub // have been drawn. boolean haveBootMsg = false; boolean haveApp = false; + // if the wallpaper service is disabled on the device, we're never going to have + // wallpaper, don't bother waiting for it boolean haveWallpaper = false; + boolean wallpaperEnabled = mContext.getResources().getBoolean( + com.android.internal.R.bool.config_enableWallpaperService); boolean haveKeyguard = true; final int N = mWindows.size(); for (int i=0; i<N; i++) { @@ -4910,7 +4914,8 @@ public class WindowManagerService extends IWindowManager.Stub if (DEBUG_SCREEN_ON || DEBUG_BOOT) { Slog.i(TAG, "******** booted=" + mSystemBooted + " msg=" + mShowingBootMessages + " haveBoot=" + haveBootMsg + " haveApp=" + haveApp - + " haveWall=" + haveWallpaper + " haveKeyguard=" + haveKeyguard); + + " haveWall=" + haveWallpaper + " wallEnabled=" + wallpaperEnabled + + " haveKeyguard=" + haveKeyguard); } // If we are turning on the screen to show the boot message, @@ -4922,7 +4927,8 @@ public class WindowManagerService extends IWindowManager.Stub // If we are turning on the screen after the boot is completed // normally, don't do so until we have the application and // wallpaper. - if (mSystemBooted && ((!haveApp && !haveKeyguard) || !haveWallpaper)) { + if (mSystemBooted && ((!haveApp && !haveKeyguard) || + (wallpaperEnabled && !haveWallpaper))) { return; } } |
