Merge "Preventing overdraw in custom content screen" into ub-launcher3-burnaby

This commit is contained in:
Sunny Goyal 2015-06-04 23:47:34 +00:00 committed by Android (Google) Code Review
commit 26c2842f07
1 changed files with 1 additions and 1 deletions

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) {