Merge "Applying lifecycle effect when changing TaskFragment bounds" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-09-30 06:13:49 +00:00
committed by Android (Google) Code Review

View File

@@ -462,6 +462,10 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub
container.onRequestedOverrideConfigurationChanged(c);
}
effects |= TRANSACT_EFFECTS_CLIENT_CONFIG;
if (windowMask != 0 && container.isEmbedded()) {
// Changing bounds of the embedded TaskFragments may result in lifecycle changes.
effects |= TRANSACT_EFFECTS_LIFECYCLE;
}
}
if ((change.getChangeMask() & WindowContainerTransaction.Change.CHANGE_FOCUSABLE) != 0) {
if (container.setFocusable(change.getFocusable())) {