OSDN Git Service

Fixing flash when you swipe a page and go into All Apps (Bug 10971209)
authorWinson Chung <winsonc@google.com>
Tue, 8 Oct 2013 01:21:59 +0000 (18:21 -0700)
committerWinson Chung <winsonc@google.com>
Tue, 8 Oct 2013 01:21:59 +0000 (18:21 -0700)
Change-Id: I7d63012409c3b084cc81095a243a2d492594bb5f

src/com/android/launcher3/Workspace.java

index c3c0019..c1d09fc 100644 (file)
@@ -1909,7 +1909,7 @@ public class Workspace extends SmoothPagedView
                 getResources().getInteger(R.integer.config_appsCustomizeWorkspaceShrinkTime);
         for (int i = 0; i < getChildCount(); i++) {
             final CellLayout cl = (CellLayout) getChildAt(i);
-            boolean isCurrentPage = (i == mCurrentPage);
+            boolean isCurrentPage = (i == getNextPage());
             float initialAlpha = cl.getShortcutsAndWidgets().getAlpha();
             float finalAlpha = stateIsSmall ? 0f : 1f;