diff options
author | Adam Powell <adamp@google.com> | 2019-02-04 11:28:22 -0800 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2019-02-26 15:37:25 -0800 |
commit | 769b8638f970c6cf62abb7ac46f80211b7c3afb6 (patch) | |
tree | e0ad974ef45ec6a2355a1fcfab4e68f580ad8a46 /tests/HwAccelerationTest | |
parent | 2da691987f1e5664f104567a94f3c661d0c4a66e (diff) |
System gesture exclusion rects for Views
Allow views to register a list of rects where the device's system UI
should not intercept complex (read: down+move+up) gestures on specific
sub-regions of the view. This should not be used for large-scale,
full-view gesture recognition such as scrolling, but rather for specific
areas such as SeekBar's scroll thumb or DrawerLayout's edge strip for
swiping open a navigation drawer.
Add ability for ViewTreeObserver to observe transformed exclusion rects
Bug: 126360272
Test: atest android.view.cts.SystemGestureExclusionRectsTest
Change-Id: If89b6f66637e40efa12955d6408f6e37b25cb46f
Diffstat (limited to 'tests/HwAccelerationTest')
-rw-r--r-- | tests/HwAccelerationTest/src/com/android/test/hwui/PositionListenerActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/PositionListenerActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/PositionListenerActivity.java index 316aad343d19..818d899413de 100644 --- a/tests/HwAccelerationTest/src/com/android/test/hwui/PositionListenerActivity.java +++ b/tests/HwAccelerationTest/src/com/android/test/hwui/PositionListenerActivity.java @@ -53,7 +53,7 @@ public class PositionListenerActivity extends Activity { MyPositionReporter(Context c) { super(c); mNode = new RenderNode("positionListener"); - mNode.requestPositionUpdates(this); + mNode.addPositionUpdateListener(this); setTextAlignment(TEXT_ALIGNMENT_VIEW_START); } |