Merge "Set wallpaper to invisible only if it is not visible-requested" into sc-dev

This commit is contained in:
Riddle Hsu
2021-04-01 04:34:49 +00:00
committed by Android (Google) Code Review

View File

@@ -274,7 +274,9 @@ class WallpaperController {
void hideDeferredWallpapersIfNeededLegacy() {
for (int i = mWallpaperTokens.size() - 1; i >= 0; i--) {
final WallpaperWindowToken token = mWallpaperTokens.get(i);
token.commitVisibility(false);
if (!token.isVisibleRequested()) {
token.commitVisibility(false);
}
}
}