OSDN Git Service

Revive DeadZone
authorSiarhei Vishniakou <svv@google.com>
Sat, 3 Jun 2017 00:20:34 +0000 (17:20 -0700)
committerSiarhei Vishniakou <svv@google.com>
Mon, 19 Jun 2017 21:06:21 +0000 (14:06 -0700)
commit6ad0e39f338d47e75bd1b964259ba21c00043f45
tree136f9ec688f81f9262b9604d290c0c968c98d4fc
parent8a95d49d8f149e190f2e170c968cbdef6a7db687
Revive DeadZone

Override dispatchTouchEvent for the root FrameLayout
of NavigationBar to process ACTION_OUTSIDE MotionEvents
and dispatch directly to DeadZone to keep track of the
most recent outside tap.
Clarified documentation of ACTION_OUTSIDE behaviour.

Bug: 37552674
Test: open IME, tap any key, then quickly tap on top half
of the home button. The home button tap is ignored
and device does not go to homescreen.

Change-Id: Icb5cf6c76959f3514b8b94c09e38cc5434f31b23
core/java/android/view/MotionEvent.java
packages/SystemUI/res/layout/navigation_bar_window.xml
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFrame.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/DeadZone.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/NavigationBarFragmentTest.java
tests/testables/src/android/testing/BaseFragmentTest.java