diff options
author | Daniel Sandler <dsandler@android.com> | 2010-05-24 11:31:34 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-05-24 11:31:34 -0700 |
commit | 2e2656ccaa5ed6cc1adc2d50c8efb67777422834 (patch) | |
tree | eab784eacff2fa26e5741389ddcb428e658d58e8 /src | |
parent | f3d5ea926d4dd1a739b9d3816543728af723cc26 (diff) | |
parent | 3e9454a9ac98eafd0ac92a2762b03a50a28c8eeb (diff) | |
download | packages_apps_trebuchet-2e2656ccaa5ed6cc1adc2d50c8efb67777422834.zip packages_apps_trebuchet-2e2656ccaa5ed6cc1adc2d50c8efb67777422834.tar.gz packages_apps_trebuchet-2e2656ccaa5ed6cc1adc2d50c8efb67777422834.tar.bz2 |
Merge "Disable hotseat buttons if AllApps is visible." into froyo
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 132f0e9..52f1224 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -204,7 +204,6 @@ public final class Launcher extends Activity private ImageView mNextView; // Hotseats (quick-launch icons next to AllApps) - // TODO: move these intial intents out to Uris in an XML resource private static final int NUM_HOTSEATS = 2; private String[] mHotseatConfig = null; private Intent[] mHotseats = null; @@ -782,6 +781,8 @@ public final class Launcher extends Activity @SuppressWarnings({"UnusedDeclaration"}) public void launchHotSeat(View v) { + if (isAllAppsVisible()) return; + int index = -1; if (v.getId() == R.id.hotseat_left) { index = 0; |