Bug 1132720 - Hide the dialog on animation end to prevent flicker on Activity.finish(). r=margaret, a=lmandel
authorMichael Comella <michael.l.comella@gmail.com>
Fri, 20 Feb 2015 10:47:47 -0800
changeset 250107 9fb3cc1f7ff6
parent 250106 1c270f40087a
child 250108 3d6eaf96ca69
push id4502
push userryanvm@gmail.com
push date2015-02-27 21:16 +0000
treeherdermozilla-beta@9fb3cc1f7ff6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret, lmandel
bugs1132720
milestone37.0
Bug 1132720 - Hide the dialog on animation end to prevent flicker on Activity.finish(). r=margaret, a=lmandel
mobile/android/base/overlays/ui/ShareDialog.java
--- a/mobile/android/base/overlays/ui/ShareDialog.java
+++ b/mobile/android/base/overlays/ui/ShareDialog.java
@@ -378,16 +378,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.
             }
         });