diff options
Diffstat (limited to 'src/com/android/launcher2/AllAppsTabbed.java')
-rw-r--r-- | src/com/android/launcher2/AllAppsTabbed.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/com/android/launcher2/AllAppsTabbed.java b/src/com/android/launcher2/AllAppsTabbed.java index 3aa70f4..7dbb1a5 100644 --- a/src/com/android/launcher2/AllAppsTabbed.java +++ b/src/com/android/launcher2/AllAppsTabbed.java @@ -92,10 +92,6 @@ public class AllAppsTabbed extends TabHost implements AllAppsView { }); setCurrentTab(0); - - // It needs to be INVISIBLE so that it will be measured in the layout. - // Otherwise the animations is messed up when we show it for the first time. - setVisibility(INVISIBLE); } @Override @@ -113,8 +109,13 @@ public class AllAppsTabbed extends TabHost implements AllAppsView { // NOTE: animate parameter is ignored for the TabHost itself setVisibility((zoom == 0.0f) ? View.GONE : View.VISIBLE); mAllApps2D.zoom(zoom, animate); - bringChildToFront((View)mAllApps2D); - getParent().bringChildToFront(this); + } + + @Override + public void setVisibility(int visibility) { + super.setVisibility(visibility); + float zoom = visibility == View.VISIBLE ? 1.0f : 0.0f; + mAllApps2D.zoom(zoom, false); } @Override |