OSDN Git Service

[DO NOT MERGE] Do not dismiss volume dialog onAnimationEnd while dialog is showing
authoreddy-sh.chen <eddy-sh.chen@mstarsemi.com>
Mon, 16 Jul 2018 06:12:04 +0000 (14:12 +0800)
committerEddy-SH Chen <eddy-sh.chen@mstarsemi.com>
Wed, 18 Jul 2018 01:49:02 +0000 (01:49 +0000)
Bug: 80362864
Bug: 111478851

Change-Id: Iec6e27285bf35238d378e6561896f1d0b303fa24

packages/SystemUI/src/com/android/systemui/volume/VolumeDialogMotion.java

index 01d31e2..85f1908 100644 (file)
@@ -238,6 +238,7 @@ public class VolumeDialogMotion {
                         mHandler.postDelayed(new Runnable() {
                             @Override
                             public void run() {
+                                if (mShowing) return;
                                 if (D.BUG) Log.d(TAG, "mDialog.dismiss()");
                                 mDialog.dismiss();
                                 onComplete.run();