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

Commit 83de4b7b authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Fix transition between two occluding activities"

parents bf5daf45 838c2451
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1521,8 +1521,13 @@ final class ActivityRecord extends ConfigurationContainer implements AppWindowCo
    }

    void notifyUnknownVisibilityLaunched() {

        // No display activities never add a window, so there is no point in waiting them for
        // relayout.
        if (!noDisplay) {
            mWindowContainerController.notifyUnknownVisibilityLaunched();
        }
    }

    /**
     * @return true if the input activity should be made visible, ignoring any effect Keyguard
+4 −3
Original line number Diff line number Diff line
@@ -1268,6 +1268,10 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D

            r.app = app;

            if (mKeyguardController.isKeyguardLocked()) {
                r.notifyUnknownVisibilityLaunched();
            }

            // Have the window manager re-evaluate the orientation of the screen based on the new
            // activity order.  Note that as a result of this, it can call back into the activity
            // manager with a new orientation.  We don't care about that, because the activity is
@@ -1294,9 +1298,6 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
                r.setVisibility(true);
            }

            if (mKeyguardController.isKeyguardLocked()) {
                r.notifyUnknownVisibilityLaunched();
            }
            final int applicationInfoUid =
                    (r.info.applicationInfo != null) ? r.info.applicationInfo.uid : -1;
            if ((r.userId != app.userId) || (r.appInfo.uid != applicationInfoUid)) {
+0 −1
Original line number Diff line number Diff line
@@ -365,7 +365,6 @@ public class AppWindowContainerController
                // Now that the app is going invisible, we can remove it. It will be restarted
                // if made visible again.
                wtoken.removeDeadWindows();
                mService.mUnknownAppVisibilityController.appRemovedOrHidden(wtoken);
            } else {
                if (!mService.mAppTransition.isTransitionSet()
                        && mService.mAppTransition.isReady()) {