@@ -4874,7 +4874,11 @@ public void performEnableScreen() {
48744874 // have been drawn.
48754875 boolean haveBootMsg = false ;
48764876 boolean haveApp = false ;
4877+ // if the wallpaper service is disabled on the device, we're never going to have
4878+ // wallpaper, don't bother waiting for it
48774879 boolean haveWallpaper = false ;
4880+ boolean wallpaperEnabled = mContext .getResources ().getBoolean (
4881+ com .android .internal .R .bool .config_enableWallpaperService );
48784882 boolean haveKeyguard = true ;
48794883 final int N = mWindows .size ();
48804884 for (int i =0 ; i <N ; i ++) {
@@ -4910,7 +4914,8 @@ public void performEnableScreen() {
49104914 if (DEBUG_SCREEN_ON || DEBUG_BOOT ) {
49114915 Slog .i (TAG , "******** booted=" + mSystemBooted + " msg=" + mShowingBootMessages
49124916 + " haveBoot=" + haveBootMsg + " haveApp=" + haveApp
4913- + " haveWall=" + haveWallpaper + " haveKeyguard=" + haveKeyguard );
4917+ + " haveWall=" + haveWallpaper + " wallEnabled=" + wallpaperEnabled
4918+ + " haveKeyguard=" + haveKeyguard );
49144919 }
49154920
49164921 // If we are turning on the screen to show the boot message,
@@ -4922,7 +4927,8 @@ public void performEnableScreen() {
49224927 // If we are turning on the screen after the boot is completed
49234928 // normally, don't do so until we have the application and
49244929 // wallpaper.
4925- if (mSystemBooted && ((!haveApp && !haveKeyguard ) || !haveWallpaper )) {
4930+ if (mSystemBooted && ((!haveApp && !haveKeyguard ) ||
4931+ (wallpaperEnabled && !haveWallpaper ))) {
49264932 return ;
49274933 }
49284934 }
0 commit comments