Bug 1132720 - Hide the dialog on animation end to prevent flicker on Activity.finish(). r=margaret
authorMichael Comella <michael.l.comella@gmail.com>
Fri, 20 Feb 2015 10:47:47 -0800
changeset 229998 64b25e31343910ff7dda74723478edfe61a251b7
parent 229997 8eef92e67922b2800fe95efe0d5e635ce365e925
child 229999 3abfc3b9ab90256cbdc34b24ce21dafc880fb4cc
push id11420
push usermichael.l.comella@gmail.com
push dateFri, 20 Feb 2015 19:01:34 +0000
treeherderfx-team@64b25e313439 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1132720
milestone38.0a1
Bug 1132720 - Hide the dialog on animation end to prevent flicker on Activity.finish(). r=margaret
mobile/android/base/overlays/ui/ShareDialog.java
--- a/mobile/android/base/overlays/ui/ShareDialog.java
+++ b/mobile/android/base/overlays/ui/ShareDialog.java
@@ -371,16 +371,19 @@ public class ShareDialog extends Locales
         anim.setAnimationListener(new Animation.AnimationListener() {
             @Override
             public void onAnimationStart(Animation animation) {
                 // Unused. I can haz Miranda method?
             }
 
             @Override
             public void onAnimationEnd(Animation animation) {
+                // (bug 1132720) Hide the View so it doesn't flicker as the Activity closes.
+                ShareDialog.this.setVisible(false);
+
                 finish();
             }
 
             @Override
             public void onAnimationRepeat(Animation animation) {
                 // Unused.
             }
         });