OSDN Git Service

Reset ongoing animation when opening menu
authorMichael Kolb <kolby@google.com>
Wed, 24 Apr 2013 21:49:46 +0000 (14:49 -0700)
committerMichael Kolb <kolby@google.com>
Wed, 24 Apr 2013 21:49:46 +0000 (14:49 -0700)
  Bug: 8687199

The XFade animation was not reset and yielded a transparent alpha

Change-Id: Ie2e43eccb2b4351ebf7d00075c567950ca6b2967

src/com/android/camera/ui/PieRenderer.java

index bd3c2f7..9edc111 100644 (file)
@@ -268,6 +268,9 @@ public class PieRenderer extends OverlayRenderer
      */
     private void show(boolean show) {
         if (show) {
+            if (mXFade != null) {
+                mXFade.cancel();
+            }
             mState = STATE_PIE;
             // ensure clean state
             mCurrentItem = null;