Merge "Disable hotseat buttons if AllApps is visible." into froyo
This commit is contained in:
commit
2e2656ccaa
1 file changed
+2
-1
@@ -204,7 +204,6 @@ public final class Launcher extends Activity
|
|||||||
private ImageView mNextView;
|
private ImageView mNextView;
|
||||||
|
|
||||||
// Hotseats (quick-launch icons next to AllApps)
|
// 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 static final int NUM_HOTSEATS = 2;
|
||||||
private String[] mHotseatConfig = null;
|
private String[] mHotseatConfig = null;
|
||||||
private Intent[] mHotseats = null;
|
private Intent[] mHotseats = null;
|
||||||
@@ -782,6 +781,8 @@ public final class Launcher extends Activity
|
|||||||
|
|
||||||
@SuppressWarnings({"UnusedDeclaration"})
|
@SuppressWarnings({"UnusedDeclaration"})
|
||||||
public void launchHotSeat(View v) {
|
public void launchHotSeat(View v) {
|
||||||
|
if (isAllAppsVisible()) return;
|
||||||
|
|
||||||
int index = -1;
|
int index = -1;
|
||||||
if (v.getId() == R.id.hotseat_left) {
|
if (v.getId() == R.id.hotseat_left) {
|
||||||
index = 0;
|
index = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user