OSDN Git Service

Filter out detached views from touch
authorRohan Shah <shahrk@google.com>
Mon, 5 Mar 2018 18:00:10 +0000 (10:00 -0800)
committerRohan Shah <shahrk@google.com>
Mon, 5 Mar 2018 18:28:35 +0000 (10:28 -0800)
commit2adfe95d849c69c7134e471e065e73596f63727e
tree60d8b823ba1fc394ef9bb4c1988f4d91f5ad866f
parentede3344e5851bae81511e7fc348a8ec34baead7e
Filter out detached views from touch

Views that are detached shouldn't get touch events/start getting
animated (They can't be animated).

Added filter to stream to remove these views from consideration for the
nearest touch frame algo.

Test: Visually + unit test
Bug: 65146195
Change-Id: I74df495a7c02d3d46cd6784f0950c48b5311819e
packages/SystemUI/src/com/android/systemui/statusbar/phone/NearestTouchFrame.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/NearestTouchFrameTest.java