summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/dragndrop/DragLayer.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-12-03 15:31:25 -0800
committerSunny Goyal <sunnygoyal@google.com>2016-02-23 12:06:16 -0800
commit32554d1c6169df944f651846c64096f8bb57fb31 (patch)
tree8b40acce1d9e5a3e43d715fac10a4ddf86aec87f /src/com/android/launcher3/dragndrop/DragLayer.java
parent261194387beebaa7927ec4e310274218b651494d (diff)
downloadandroid_packages_apps_Trebuchet-32554d1c6169df944f651846c64096f8bb57fb31.tar.gz
android_packages_apps_Trebuchet-32554d1c6169df944f651846c64096f8bb57fb31.tar.bz2
android_packages_apps_Trebuchet-32554d1c6169df944f651846c64096f8bb57fb31.zip
Cleaning up the overlay interface
Removing some unnecessary and unused methods Bug: 25993953 Change-Id: I4d715cdee04eb7b0ebef673d885a4258c521ff1f
Diffstat (limited to 'src/com/android/launcher3/dragndrop/DragLayer.java')
-rw-r--r--src/com/android/launcher3/dragndrop/DragLayer.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/com/android/launcher3/dragndrop/DragLayer.java b/src/com/android/launcher3/dragndrop/DragLayer.java
index 3128db21e..f16a56c8b 100644
--- a/src/com/android/launcher3/dragndrop/DragLayer.java
+++ b/src/com/android/launcher3/dragndrop/DragLayer.java
@@ -110,8 +110,6 @@ public class DragLayer extends InsettableFrameLayout {
private Drawable mLeftHoverDrawableActive;
private Drawable mRightHoverDrawableActive;
- private boolean mBlockTouches = false;
-
/**
* Used to create a new DragLayer from XML.
*
@@ -186,19 +184,11 @@ public class DragLayer extends InsettableFrameLayout {
return false;
}
- public void setBlockTouch(boolean block) {
- mBlockTouches = block;
- }
-
private boolean handleTouchDown(MotionEvent ev, boolean intercept) {
Rect hitRect = new Rect();
int x = (int) ev.getX();
int y = (int) ev.getY();
- if (mBlockTouches) {
- return true;
- }
-
for (AppWidgetResizeFrame child: mResizeFrames) {
child.getHitRect(hitRect);
if (hitRect.contains(x, y)) {
@@ -364,10 +354,6 @@ public class DragLayer extends InsettableFrameLayout {
int x = (int) ev.getX();
int y = (int) ev.getY();
- if (mBlockTouches) {
- return true;
- }
-
if (action == MotionEvent.ACTION_DOWN) {
if (handleTouchDown(ev, false)) {
return true;