diff options
| author | 2016-09-22 14:03:41 -0700 | |
|---|---|---|
| committer | 2016-09-22 14:03:41 -0700 | |
| commit | fc7086ef652dcf014c87c0cc38bd99de18a5c905 (patch) | |
| tree | fd5b18b3a29d49983d1211ba5712492d1a1558bb | |
| parent | 705442fa7dcbf1bf92595fdaca6cc888810931d8 (diff) | |
Fixed an issue where the inline controls where not usable
Because the calculation whether a touch is on a view was incorrect
the inline controlls would always close on tablets when interacting
with them.
Change-Id: I68dcba411b34def32a044f5a4d73b396f74e9730
Fixes: 31502625
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index d1de38c7b9e4..9bded7944d37 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -4139,13 +4139,11 @@ public class NotificationStackScrollLayout extends ViewGroup final int rx = (int) ev.getRawX(); final int ry = (int) ev.getRawY(); - getLocationOnScreen(mTempInt2); - int[] location = new int[2]; - view.getLocationOnScreen(location); - final int x = location[0] - mTempInt2[0]; - final int y = location[1] - mTempInt2[1]; + view.getLocationOnScreen(mTempInt2); + final int x = mTempInt2[0]; + final int y = mTempInt2[1]; Rect rect = new Rect(x, y, x + view.getWidth(), y + height); - if (!rect.contains((int) rx, (int) ry)) { + if (!rect.contains(rx, ry)) { // Touch was outside visible guts / gear notification, close what's visible mPhoneStatusBar.dismissPopups(-1, -1, true /* resetGear */, true /* animate */); } |