From 305e0baa67b4b07b78f6e8fd8b1863ab58776369 Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Mon, 6 Jul 2015 15:53:59 -0400 Subject: Don't dismiss volume during animation (sometimes this messes up the state and results in it getting stuck on the screen) Bug: 22169656 Change-Id: I7738be8f7f54fc72d68bf9831baed2821f362bb1 --- packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java index 3964820..a4ccfd1 100644 --- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java +++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialog.java @@ -462,6 +462,9 @@ public class VolumeDialog { } protected void dismissH(int reason) { + if (mMotion.isAnimating()) { + return; + } mHandler.removeMessages(H.DISMISS); mHandler.removeMessages(H.SHOW); if (!mShowing) return; -- cgit v1.1