Updating some comments and variables

Change-Id: Ib3223c66e9ce187cebc6ce26a46b228f95787778
This commit is contained in:
Sunny Goyal
2020-07-17 18:58:49 +00:00
parent 1d96d2370f
commit 5d09b2e358
6 changed files with 9 additions and 9 deletions
@@ -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;
}
}