summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Workspace.java
diff options
context:
space:
mode:
authorDerek Prothro <dprothro@google.com>2014-01-17 13:43:50 -0500
committerDanesh M <daneshm90@gmail.com>2014-06-06 22:54:27 -0700
commite1de81e1486d898ed531a4b085523bef19f86da7 (patch)
tree0ff617522d85c12d9e86574578fc48b87b04f892 /src/com/android/launcher3/Workspace.java
parent2985440a1e90b40795bdb0b6caee6f58be5e3fd7 (diff)
downloadandroid_packages_apps_Trebuchet-e1de81e1486d898ed531a4b085523bef19f86da7.tar.gz
android_packages_apps_Trebuchet-e1de81e1486d898ed531a4b085523bef19f86da7.tar.bz2
android_packages_apps_Trebuchet-e1de81e1486d898ed531a4b085523bef19f86da7.zip
Fix black flash during rotation of -1 screen with GEL.
We need to make sure the custom content is adding synchronously while the rest of the workspace is being created. If we wait for it to be added in a separate run task, we see a black flash during rotation. Also rename a few methods and remove obsolete methods. Bug: 11802691 Change-Id: I3f6500aa1fabe68cef59ad8c764877f954986a99
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r--src/com/android/launcher3/Workspace.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 72fd9edbc..d2586e764 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -453,7 +453,7 @@ public class Workspace extends SmoothPagedView
setClipChildren(false);
setClipToPadding(false);
setChildrenDrawnWithCacheEnabled(true);
-
+
setMinScale(mOverviewModeShrinkFactor);
setupLayoutTransition();
@@ -606,7 +606,7 @@ public class Workspace extends SmoothPagedView
return screenId;
}
- public void createCustomContentPage() {
+ public void createCustomContentContainer() {
CellLayout customScreen = (CellLayout)
mLauncher.getLayoutInflater().inflate(R.layout.workspace_screen, null);
customScreen.disableBackground();