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

Commit 11f5a2b8 authored by Jeff Chang's avatar Jeff Chang Committed by Automerger Merge Worker
Browse files

[RESTRICT AUTOMERGE] Do not resume activity if behind a translucent task am: 0a4f661e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16713864

Change-Id: I299e3228a5bc5195b1bd95593da700828cbac1f1
parents ff844f43 0a4f661e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ class EnsureActivitiesVisibleHelper {
        // activities are actually behind other fullscreen activities, but still required
        // to be visible (such as performing Recents animation).
        final boolean resumeTopActivity = mTop != null && !mTop.mLaunchTaskBehind
                && mTaskFragment.isTopActivityFocusable()
                && mTaskFragment.canBeResumed(starting)
                && (starting == null || !starting.isDescendantOf(mTaskFragment));

        ArrayList<TaskFragment> adjacentTaskFragments = null;
+2 −1
Original line number Diff line number Diff line
@@ -1979,7 +1979,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent>

        try {
            if (mTaskSupervisor.realStartActivityLocked(r, app,
                    top == r && r.isFocusable() /*andResume*/, true /*checkConfig*/)) {
                    top == r && r.getTask().canBeResumed(r) /*andResume*/,
                    true /*checkConfig*/)) {
                mTmpBoolean = true;
            }
        } catch (RemoteException e) {