@@ -4918,7 +4918,11 @@ public void performEnableScreen() {
49184918 // have been drawn.
49194919 boolean haveBootMsg = false ;
49204920 boolean haveApp = false ;
4921+ // if the wallpaper service is disabled on the device, we're never going to have
4922+ // wallpaper, don't bother waiting for it
49214923 boolean haveWallpaper = false ;
4924+ boolean wallpaperEnabled = mContext .getResources ().getBoolean (
4925+ com .android .internal .R .bool .config_enableWallpaperService );
49224926 boolean haveKeyguard = true ;
49234927 final int N = mWindows .size ();
49244928 for (int i =0 ; i <N ; i ++) {
@@ -4954,7 +4958,8 @@ public void performEnableScreen() {
49544958 if (DEBUG_SCREEN_ON || DEBUG_BOOT ) {
49554959 Slog .i (TAG , "******** booted=" + mSystemBooted + " msg=" + mShowingBootMessages
49564960 + " haveBoot=" + haveBootMsg + " haveApp=" + haveApp
4957- + " haveWall=" + haveWallpaper + " haveKeyguard=" + haveKeyguard );
4961+ + " haveWall=" + haveWallpaper + " wallEnabled=" + wallpaperEnabled
4962+ + " haveKeyguard=" + haveKeyguard );
49584963 }
49594964
49604965 // If we are turning on the screen to show the boot message,
@@ -4966,7 +4971,8 @@ public void performEnableScreen() {
49664971 // If we are turning on the screen after the boot is completed
49674972 // normally, don't do so until we have the application and
49684973 // wallpaper.
4969- if (mSystemBooted && ((!haveApp && !haveKeyguard ) || !haveWallpaper )) {
4974+ if (mSystemBooted && ((!haveApp && !haveKeyguard ) ||
4975+ (wallpaperEnabled && !haveWallpaper ))) {
49704976 return ;
49714977 }
49724978 }
0 commit comments