diff options
author | Mario Bertschler <bmario@google.com> | 2017-06-22 09:27:05 -0700 |
---|---|---|
committer | Mario Bertschler <bmario@google.com> | 2017-06-22 09:29:46 -0700 |
commit | cd04c89f89dd092d34d149dad107efd7ae00fb2a (patch) | |
tree | c92b42758c725ca6e9c08c48d7876dfdead35e90 /src/com/android/launcher3/shortcuts | |
parent | bef710114c04cac2708f51ab93cf05174b410cab (diff) | |
download | android_packages_apps_Trebuchet-cd04c89f89dd092d34d149dad107efd7ae00fb2a.tar.gz android_packages_apps_Trebuchet-cd04c89f89dd092d34d149dad107efd7ae00fb2a.tar.bz2 android_packages_apps_Trebuchet-cd04c89f89dd092d34d149dad107efd7ae00fb2a.zip |
Removing view.isInTouchMode() because plaform returns false when
using a mouse on long click.
Bug: 38204847
Change-Id: I5b10e8251f4f0a7b148c0404d5939a0fa8325a46
Diffstat (limited to 'src/com/android/launcher3/shortcuts')
-rw-r--r-- | src/com/android/launcher3/shortcuts/ShortcutsItemView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/shortcuts/ShortcutsItemView.java b/src/com/android/launcher3/shortcuts/ShortcutsItemView.java index 59a0386bb..8785a56f9 100644 --- a/src/com/android/launcher3/shortcuts/ShortcutsItemView.java +++ b/src/com/android/launcher3/shortcuts/ShortcutsItemView.java @@ -104,8 +104,8 @@ public class ShortcutsItemView extends PopupItemView implements View.OnLongClick @Override public boolean onLongClick(View v) { - // Return early if this is not initiated from a touch or not the correct view - if (!v.isInTouchMode() || !(v.getParent() instanceof DeepShortcutView)) return false; + // Return early if not the correct view + if (!(v.getParent() instanceof DeepShortcutView)) return false; // Return early if global dragging is not enabled if (!mLauncher.isDraggingEnabled()) return false; // Return early if an item is already being dragged (e.g. when long-pressing two shortcuts) |