Updating some comments and variables
Change-Id: Ib3223c66e9ce187cebc6ce26a46b228f95787778
This commit is contained in:
@@ -605,13 +605,13 @@ public abstract class BaseDragLayer<T extends Context & ActivityContext>
|
||||
*/
|
||||
private boolean computeAllowSysuiScrims(@Nullable WallpaperInfo newWallpaperInfo) {
|
||||
if (newWallpaperInfo == null) {
|
||||
// New wallpaper is static, not live. Thus, blacklist isn't applicable.
|
||||
// Static wallpapers need scrim unless determined otherwise by wallpaperColors.
|
||||
return true;
|
||||
}
|
||||
ComponentName newWallpaper = newWallpaperInfo.getComponent();
|
||||
for (String wallpaperWithoutScrim : mWallpapersWithoutSysuiScrims) {
|
||||
if (newWallpaper.equals(ComponentName.unflattenFromString(wallpaperWithoutScrim))) {
|
||||
// New wallpaper is blacklisted from showing a scrim.
|
||||
// New wallpaper does not need a scrim.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user