From 76128b6359fc430542811fbb32e4a1d593a9ef07 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Thu, 14 Nov 2013 16:43:59 +0000 Subject: Fix issue where custom content would be invisible (issue 11644432) -> Also making sure to clear the widget frame when moving to custom content. Change-Id: I460c707f1b6ec34bc6d78c9df43a613d9bfced3c --- src/com/android/launcher3/Workspace.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/com/android') diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 500f2a911..9b6784c8d 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -2110,7 +2110,8 @@ public class Workspace extends SmoothPagedView if (stateIsSmall) { finalAlpha = 0f; } else if (stateIsNormal && mWorkspaceFadeInAdjacentScreens) { - finalAlpha = i == getNextPage() ? 1f : 0f; + + finalAlpha = (i == getNextPage() || i < numCustomPages()) ? 1f : 0f; } else { finalAlpha = 1f; } @@ -2351,6 +2352,11 @@ public class Workspace extends SmoothPagedView final CellLayout cl = (CellLayout) getChildAt(i); cl.setShortcutAndWidgetAlpha(1f); } + } else { + for (int i = 0; i < numCustomPages(); i++) { + final CellLayout cl = (CellLayout) getChildAt(i); + cl.setShortcutAndWidgetAlpha(1f); + } } showCustomContentIfNecessary(); } @@ -4568,6 +4574,7 @@ public class Workspace extends SmoothPagedView child.requestFocus(); } } + exitWidgetResizeMode(); } @Override -- cgit v1.2.3