Merge "Ensure we don't set visibility after action is destroyed."

This commit is contained in:
Winson Chung
2017-03-21 19:59:47 +00:00
committed by Android (Google) Code Review

View File

@@ -295,7 +295,9 @@ public class PipMenuActivity extends Activity {
if (animationFinishedRunnable != null) {
animationFinishedRunnable.run();
}
setVisible(false);
if (!isDestroyed()) {
setVisible(false);
}
}
});
mMenuContainerAnimator.addUpdateListener(mMenuBgUpdateListener);