Merge "Ensure the next activity of non-focusable task to be visible"
This commit is contained in:
@@ -2647,7 +2647,11 @@ class ActivityStarter {
|
||||
if (next != null) {
|
||||
next.setCurrentLaunchCanTurnScreenOn(true);
|
||||
}
|
||||
mRootWindowContainer.resumeFocusedTasksTopActivities(mTargetStack, null, mOptions);
|
||||
if (mTargetStack.isFocusable()) {
|
||||
mRootWindowContainer.resumeFocusedTasksTopActivities(mTargetStack, null, mOptions);
|
||||
} else {
|
||||
mRootWindowContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS);
|
||||
}
|
||||
} else {
|
||||
ActivityOptions.abort(mOptions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user