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
This commit is contained in:
Jason Monk
2015-07-06 15:53:59 -04:00
parent a559590043
commit 305e0baa67

View File

@@ -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;