OSDN Git Service

Fix issue where custom content pops in (issue 11209357)
authorAdam Cohen <adamcohen@google.com>
Mon, 14 Oct 2013 23:29:02 +0000 (16:29 -0700)
committerAdam Cohen <adamcohen@google.com>
Mon, 14 Oct 2013 23:42:10 +0000 (16:42 -0700)
Change-Id: Ibb40505ac25d59add0b405a1b2ac48a9778314d3

src/com/android/launcher3/Workspace.java

index da04162..908a61e 100644 (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);