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

Commit 93b6bc3d authored by Adam Powell's avatar Adam Powell
Browse files

Make finish() a no-op on a context mode that is not active.

Change-Id: I2b3b304b7371a76ce67dcf197eaea2e77904399b
parent 612f8da2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -383,6 +383,11 @@ public class ActionBarImpl extends ActionBar {

        @Override
        public void finish() {
            if (mContextMode != this) {
                // Not the active context mode - no-op
                return;
            }

            mCallback.onDestroyContextualMode(this);
            mAnimatorView.setDisplayedChild(NORMAL_VIEW);