commit | cc2448e77669125cc7ff406d50a99fb80de66c1a | [log] [tgz] |
---|---|---|
author | Beverly <beverlyt@google.com> | Wed Aug 15 12:56:53 2018 -0400 |
committer | Beverly <beverlyt@google.com> | Wed Aug 15 12:56:53 2018 -0400 |
tree | 0d8d8cca9d8d6df089b3f869593828d11bd76050 | |
parent | 526d2d68db7dae50d4fa4346a4c2ee29860ac30a [diff] [blame] |
Don't re-animate volume dialog dismissal - If the VolumeDialog is already dismissing, don't restart its dismissing animation Test: manual Bug: 112347302 Change-Id: I588d0662ee2948ae5cfd52ee5989c473942bf2a0
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java index 02babac..13c43f7 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
@@ -1195,7 +1195,7 @@ @Override public boolean onTouchEvent(MotionEvent event) { - if (isShowing()) { + if (mShowing) { if (event.getAction() == MotionEvent.ACTION_OUTSIDE) { dismissH(Events.DISMISS_REASON_TOUCH_OUTSIDE); return true;