diff options
author | Michael Jurka <mikejurka@google.com> | 2012-03-12 18:36:12 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2012-03-20 01:40:41 -0700 |
commit | 39e5d176e6e375e7ae46d42ed14412d54cb223c9 (patch) | |
tree | 0b8ce3e8550e6611f0206efa5e585373319fcc2d /src/com/android/launcher2/AppsCustomizeTabHost.java | |
parent | 37ad978fd992342c3539376affb1902d8fbd92ff (diff) | |
download | android_packages_apps_Trebuchet-39e5d176e6e375e7ae46d42ed14412d54cb223c9.tar.gz android_packages_apps_Trebuchet-39e5d176e6e375e7ae46d42ed14412d54cb223c9.tar.bz2 android_packages_apps_Trebuchet-39e5d176e6e375e7ae46d42ed14412d54cb223c9.zip |
Fix more cases where blips show up in All Apps
- defer any updates to the widget previews if we're
mid-transition
- call System.gc() before a transition to avoid gc
mid-transition
Change-Id: If8b4699b142af20b2f14e9a8653f893139adf90e
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizeTabHost.java')
-rw-r--r-- | src/com/android/launcher2/AppsCustomizeTabHost.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java index 7108c9f53..af0f205d5 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher2/AppsCustomizeTabHost.java @@ -355,6 +355,11 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona // force building the layer, so you don't get a blip early in an animation // when the layer is created layer buildLayer(); + + // Let the GC system know that now is a good time to do any garbage + // collection; makes it less likely we'll get a GC during the all apps + // to workspace animation + System.gc(); } } @@ -366,6 +371,7 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona /* LauncherTransitionable overrides */ @Override public void onLauncherTransitionStart(Launcher l, boolean animated, boolean toWorkspace) { + mAppsCustomizePane.onLauncherTransitionStart(l, animated, toWorkspace); mInTransition = true; mTransitioningToWorkspace = toWorkspace; @@ -405,6 +411,7 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona @Override public void onLauncherTransitionEnd(Launcher l, boolean animated, boolean toWorkspace) { + mAppsCustomizePane.onLauncherTransitionEnd(l, animated, toWorkspace); mInTransition = false; if (animated) { setLayerType(LAYER_TYPE_NONE, null); |