Merge "[RESTRICT AUTOMERGE] Do not resume activity if behind a translucent task" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
351f990172
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user