diff options
author | Philip Quinn <pquinn@google.com> | 2020-03-23 19:07:09 -0700 |
---|---|---|
committer | Philip Quinn <pquinn@google.com> | 2020-03-23 21:57:13 -0700 |
commit | 97f2e74c5c5c0d2480229c22000f58a588262951 (patch) | |
tree | 6ea34069929fee7ece585b4327e776ebf8876686 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 4716913d96b821b757e40a1e1a96b492e5c5ebac (diff) |
Do not expand a notification if its guts are exposed.
A notification may be expanded by both ExpandHelper and SwipeHelper if
both the touch slop and long-press thresholds are crossed at the same
time. This is quite difficult to trigger with conventional touches, but
is quite easy to trigger with a deep press.
To prevent this, the SwipeHelper should not receive touches if the
ExpandHelper has expanded a notification (mExpandingNotification), and,
conversely, the ExpandHelper should not receive touches if the
SwipeHelper has exposed a notification (guts != null).
Bug: 148172385
Test: deep press on notifications; guts are exposed without
visual/haptic glitches
Change-Id: Id81c9034bfa9c29b35d43a6125537ca5f9a2e9c4
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions