summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-01-06 16:25:55 -0800
committerWinson Chung <winsonc@google.com>2011-01-06 16:29:06 -0800
commit26cbf3a0016a19c20f953ccd07242bdf875da0fa (patch)
tree5aa74bc8f375880d9ccca4f176adf50734e7d533 /src/com
parent4b1c0ba3ac4a76d3ba04035e2785ced5a1faf826 (diff)
downloadpackages_apps_trebuchet-26cbf3a0016a19c20f953ccd07242bdf875da0fa.zip
packages_apps_trebuchet-26cbf3a0016a19c20f953ccd07242bdf875da0fa.tar.gz
packages_apps_trebuchet-26cbf3a0016a19c20f953ccd07242bdf875da0fa.tar.bz2
Minor fixes to stop crashing on panning/dragging on phones.
Change-Id: Ibfc0072d6db039b97876702b2c0577359a7ae567
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/launcher2/CellLayout.java2
-rw-r--r--src/com/android/launcher2/Launcher.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java
index 53a584e..4e618af 100644
--- a/src/com/android/launcher2/CellLayout.java
+++ b/src/com/android/launcher2/CellLayout.java
@@ -474,7 +474,7 @@ public class CellLayout extends ViewGroup implements Dimmable {
// When we're small, we are either drawn normally or in the "accepts drops" state (during
// a drag). However, we also drag the mini hover background *over* one of those two
// backgrounds
- if (mBackgroundAlpha > 0.0f) {
+ if (LauncherApplication.isScreenXLarge() && mBackgroundAlpha > 0.0f) {
Drawable bg;
boolean mini = getScaleX() < 0.5f;
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index ee9e7a8..83f13aa 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -995,9 +995,9 @@ public final class Launcher extends Activity
final View configureButton = findViewById(R.id.configure_button);
if (LauncherApplication.isScreenXLarge()) {
- mDeleteZone.setOverlappingViews(new View[] { allAppsButton, divider, configureButton });
+ deleteZone.setOverlappingViews(new View[] { allAppsButton, divider, configureButton });
} else {
- deleteZone.setOverlappingView(configureButton);
+ deleteZone.setOverlappingView(findViewById(R.id.all_apps_button_cluster));
}
dragController.addDragListener(deleteZone);