Merge "Fixes testResumedWhenRecreatedFromInNonFocusedStack" into rvc-dev
This commit is contained in:
@@ -1160,8 +1160,14 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
} else {
|
} else {
|
||||||
mLastReportedMultiWindowMode = inMultiWindowMode;
|
mLastReportedMultiWindowMode = inMultiWindowMode;
|
||||||
computeConfigurationAfterMultiWindowModeChange();
|
computeConfigurationAfterMultiWindowModeChange();
|
||||||
ensureActivityConfiguration(0 /* globalChanges */, PRESERVE_WINDOWS,
|
// If the activity is in stopping or stopped state, for instance, it's in the
|
||||||
true /* ignoreVisibility */);
|
// split screen task and not the top one, the last configuration it should keep
|
||||||
|
// is the one before multi-window mode change.
|
||||||
|
final ActivityState state = getState();
|
||||||
|
if (state != STOPPED && state != STOPPING) {
|
||||||
|
ensureActivityConfiguration(0 /* globalChanges */, PRESERVE_WINDOWS,
|
||||||
|
true /* ignoreVisibility */);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user