Always have the AllAppsView visible, but have it draw nothing
when it shouldn't be visible.
This lets us do clean animations and not wait for GL to spool up.
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 06f106e..9bcb537 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1583,7 +1583,7 @@
void showAllAppsDialog() {
mAllAppsVisible = true;
- mAllAppsGrid.setVisibility(View.VISIBLE);
+ mAllAppsGrid.show();
mWorkspace.hide();
// TODO: fade these two too
@@ -1594,12 +1594,7 @@
void closeAllAppsDialog(boolean animated) {
if (mAllAppsVisible) {
Log.d(LOG_TAG, "closing all apps");
- if (animated) {
- // TODO mDrawer.animateClose();
- mAllAppsGrid.setVisibility(View.GONE);
- } else {
- mAllAppsGrid.setVisibility(View.GONE);
- }
+ mAllAppsGrid.hide(animated);
mAllAppsVisible = false;
mWorkspace.getChildAt(mWorkspace.getCurrentScreen()).requestFocus();
mWorkspace.show();