Fixed an issue where the inline controls where not usable

am: fc7086ef65

Change-Id: I802f032cbe63c19e28782ece7a7a9d6faa1665b6
This commit is contained in:
Selim Cinek
2016-09-23 22:01:22 +00:00
committed by android-build-merger

View File

@@ -4140,13 +4140,11 @@ public class NotificationStackScrollLayout extends ViewGroup
final int rx = (int) ev.getRawX(); final int rx = (int) ev.getRawX();
final int ry = (int) ev.getRawY(); final int ry = (int) ev.getRawY();
getLocationOnScreen(mTempInt2); view.getLocationOnScreen(mTempInt2);
int[] location = new int[2]; final int x = mTempInt2[0];
view.getLocationOnScreen(location); final int y = mTempInt2[1];
final int x = location[0] - mTempInt2[0];
final int y = location[1] - mTempInt2[1];
Rect rect = new Rect(x, y, x + view.getWidth(), y + height); 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 // Touch was outside visible guts / gear notification, close what's visible
mPhoneStatusBar.dismissPopups(-1, -1, true /* resetGear */, true /* animate */); mPhoneStatusBar.dismissPopups(-1, -1, true /* resetGear */, true /* animate */);
} }