From 97f0c5fecd08374c8a280e2e9304d02e73eb4988 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Fri, 10 Apr 2020 15:12:44 -0700 Subject: [PATCH] Fix wallpaper flickering when turning screen off Test: visual Bug: 153559173 Change-Id: If16a59464b4524e757f6df0c372d64a8791770b4 --- .../src/com/android/systemui/statusbar/phone/StatusBar.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index fa55b74606c2b..b37d98698799d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -488,11 +488,9 @@ public class StatusBar extends SystemUI implements DemoMode, WallpaperInfo info = wallpaperManager.getWallpaperInfo(UserHandle.USER_CURRENT); final boolean deviceSupportsAodWallpaper = mContext.getResources().getBoolean( com.android.internal.R.bool.config_dozeSupportsAodWallpaper); - final boolean imageWallpaperInAmbient = !mDozeParameters.getDisplayNeedsBlanking(); // If WallpaperInfo is null, it must be ImageWallpaper. final boolean supportsAmbientMode = deviceSupportsAodWallpaper - && ((info == null && imageWallpaperInAmbient) - || (info != null && info.supportsAmbientMode())); + && (info != null && info.supportsAmbientMode()); mNotificationShadeWindowController.setWallpaperSupportsAmbientMode(supportsAmbientMode); mScrimController.setWallpaperSupportsAmbientMode(supportsAmbientMode);