Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e094a5a authored by Andrii Kulian's avatar Andrii Kulian Committed by android-build-merger
Browse files

Merge "DO NOT MERGE Don't send config change when display is removed" into pi-dev

am: 98396d2d

Change-Id: I1a26998296be54da90556f893da6b1a7fd492480
parents 77a7a499 98396d2d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -664,6 +664,10 @@ class ActivityDisplay extends ConfigurationContainer<ActivityStack>
        while (getChildCount() > 0) {
            final ActivityStack stack = getChildAt(0);
            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,
                        false /* onTop */);
                stack.finishAllActivitiesLocked(true /* immediately */);