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 230068 64b25e31343910ff7dda74723478edfe61a251b7
parent 230067 8eef92e67922b2800fe95efe0d5e635ce365e925
child 230069 3abfc3b9ab90256cbdc34b24ce21dafc880fb4cc
push id28306
push userkwierso@gmail.com
push dateSat, 21 Feb 2015 02:06:27 +0000
treeherdermozilla-central@45a77b0aba15 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1132720
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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.
             }
         });