Merge "Fix issue where custom content pops in (issue 11209357)" into jb-ub-now-indigo-rose

This commit is contained in:
Adam Cohen
2013-10-14 23:43:10 +00:00
committed by Android (Google) Code Review
+6
View File
@@ -1446,6 +1446,12 @@ public class Workspace extends SmoothPagedView
}
if (Float.compare(progress, mLastCustomContentScrollProgress) == 0) return;
CellLayout cc = mWorkspaceScreens.get(CUSTOM_CONTENT_SCREEN_ID);
if (progress > 0 && cc.getVisibility() != VISIBLE && !isSmall()) {
cc.setVisibility(VISIBLE);
}
mLastCustomContentScrollProgress = progress;
setBackgroundAlpha(progress * 0.8f);