commit | 4268b195df37fbaecc4c05d983a6d019eef0f123 | [log] [tgz] |
---|---|---|
author | Dennis Kempin <denniskempin@google.com> | Wed Jan 20 20:57:36 2016 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Jan 20 20:57:36 2016 +0000 |
tree | 76326fbe1a2cc4a2ea8992843f7b3466944e3985 | |
parent | c1229a5b2bd025d8ae319e1be6b91fbbdac78d32 [diff] | |
parent | fb5168a3e3749dbb8517ad39f34d450e2aea49da [diff] |
Merge "SystemGestures: Only send touch events to gesture detector."
diff --git a/services/core/java/com/android/server/policy/SystemGesturesPointerEventListener.java b/services/core/java/com/android/server/policy/SystemGesturesPointerEventListener.java index b06fe58..80e4341 100644 --- a/services/core/java/com/android/server/policy/SystemGesturesPointerEventListener.java +++ b/services/core/java/com/android/server/policy/SystemGesturesPointerEventListener.java
@@ -89,7 +89,7 @@ @Override public void onPointerEvent(MotionEvent event) { - if (mGestureDetector != null) { + if (mGestureDetector != null && event.isTouchEvent()) { mGestureDetector.onTouchEvent(event); } switch (event.getActionMasked()) {