Preventing overdraw in custom content screen

> Assuming customcontent screen is opaque, setting scrim alpha to 0
when the screen is fully visible

Bug: 21584384
Change-Id: Ifa95a10d880532f59573090673e90a87c7edba9b
This commit is contained in:
Sunny Goyal
2015-06-04 16:29:51 -07:00
parent a56eab41fb
commit 0c9143d06b
+1 -1
View File
@@ -1620,7 +1620,7 @@ public class Workspace extends PagedView
// We should only update the drag layer background alpha if we are not in all apps or the
// widgets tray
if (mState == State.NORMAL) {
mLauncher.getDragLayer().setBackgroundAlpha(progress * 0.8f);
mLauncher.getDragLayer().setBackgroundAlpha(progress == 1 ? 0 : progress * 0.8f);
}
if (mLauncher.getHotseat() != null) {