Merge "DO NOT MERGE Don't send config change when display is removed" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
98396d2de4
@@ -664,6 +664,10 @@ class ActivityDisplay extends ConfigurationContainer<ActivityStack>
|
|||||||
while (getChildCount() > 0) {
|
while (getChildCount() > 0) {
|
||||||
final ActivityStack stack = getChildAt(0);
|
final ActivityStack stack = getChildAt(0);
|
||||||
if (destroyContentOnRemoval) {
|
if (destroyContentOnRemoval) {
|
||||||
|
// Override the stack configuration to make it equal to the current applied one, so
|
||||||
|
// that we don't accidentally report configuration change to activities that are
|
||||||
|
// going to be finished.
|
||||||
|
stack.onOverrideConfigurationChanged(stack.getConfiguration());
|
||||||
mSupervisor.moveStackToDisplayLocked(stack.mStackId, DEFAULT_DISPLAY,
|
mSupervisor.moveStackToDisplayLocked(stack.mStackId, DEFAULT_DISPLAY,
|
||||||
false /* onTop */);
|
false /* onTop */);
|
||||||
stack.finishAllActivitiesLocked(true /* immediately */);
|
stack.finishAllActivitiesLocked(true /* immediately */);
|
||||||
|
|||||||
Reference in New Issue
Block a user