Merge "Ensure the next activity of non-focusable task to be visible" into rvc-qpr-dev am: b33de1f64b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13976166 Change-Id: I798e2487076dfcee035714c41719a65487cb2514
This commit is contained in:
@@ -2538,7 +2538,11 @@ class ActivityStarter {
|
|||||||
|
|
||||||
private void resumeTargetStackIfNeeded() {
|
private void resumeTargetStackIfNeeded() {
|
||||||
if (mDoResume) {
|
if (mDoResume) {
|
||||||
|
if (mTargetStack.isFocusable()) {
|
||||||
mRootWindowContainer.resumeFocusedStacksTopActivities(mTargetStack, null, mOptions);
|
mRootWindowContainer.resumeFocusedStacksTopActivities(mTargetStack, null, mOptions);
|
||||||
|
} else {
|
||||||
|
mRootWindowContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ActivityOptions.abort(mOptions);
|
ActivityOptions.abort(mOptions);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user