Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7200eda4 authored by Winson Chung's avatar Winson Chung
Browse files

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

- The activity call to setVisible() does not check before using the
  decor view (which is reset once the activity is destroyed).

Bug: 36469656
Test: Test PIP app which finishes in response to action handling
Change-Id: I50e49bd6e9759c11edd71c0c5cac61939e3bf276
parent 914c4ab1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -295,8 +295,10 @@ public class PipMenuActivity extends Activity {
                    if (animationFinishedRunnable != null) {
                        animationFinishedRunnable.run();
                    }
                    if (!isDestroyed()) {
                        setVisible(false);
                    }
                }
            });
            mMenuContainerAnimator.addUpdateListener(mMenuBgUpdateListener);
            mMenuContainerAnimator.start();