diff options
author | Joe Onorato <joeo@android.com> | 2009-09-03 11:38:43 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-09-03 11:38:43 -0700 |
commit | 006b25f88d56ef59c78f376fa2b07a34a2cef6e3 (patch) | |
tree | 386f76e68c813b5ff3bfa57559bbe921f523e495 /res | |
parent | fc75f0f5328820d4dda0adcbdb83ff3c907d74c6 (diff) | |
download | android_packages_apps_Trebuchet-006b25f88d56ef59c78f376fa2b07a34a2cef6e3.tar.gz android_packages_apps_Trebuchet-006b25f88d56ef59c78f376fa2b07a34a2cef6e3.tar.bz2 android_packages_apps_Trebuchet-006b25f88d56ef59c78f376fa2b07a34a2cef6e3.zip |
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.
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-port/launcher.xml | 1 | ||||
-rw-r--r-- | res/raw/rollo.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index 5b5c37cb3..edfa9f11d 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -26,7 +26,6 @@ android:id="@+id/all_apps_view" android:layout_width="fill_parent" android:layout_height="fill_parent" - android:visibility="gone" android:scrollbarStyle="outsideInset" android:drawSelectorOnTop="false" diff --git a/res/raw/rollo.c b/res/raw/rollo.c index 028d537f9..283d89da8 100644 --- a/res/raw/rollo.c +++ b/res/raw/rollo.c @@ -33,7 +33,7 @@ #define STATE_SELECTED_ICON_INDEX 9 #define STATE_SELECTED_ICON_TEXTURE 10 -#define STATE_BORDERY0 11 +#define STATE_VISIBLE 11 // Drawing constants, should be parameters ====== #define VIEW_ANGLE 1.28700222f @@ -155,6 +155,11 @@ main(int launchID) // Clear to transparent pfClearColor(0.0f, 0.0f, 0.0f, 0.0f); + // If we're not supposed to be showing, don't do anything. + if (!loadI32(ALLOC_STATE, STATE_VISIBLE)) { + return 0; + } + // icons & labels int iconCount = loadI32(ALLOC_STATE, STATE_ICON_COUNT); int pageCount = count_pages(iconCount); |