Make the condition of preserveWindows consistent
Remove preserveWindows:
It was confusing that the callers pass the parameter randomly.
But the final condition is still filtered by
"isResizeOnlyChange(changes) && !mFreezingScreen;"
in AR#ensureActivityConfiguration.
So concentrate the decision there. Also add a condition to
not preserve for rotation change temporarily, until the
problem of re-show IME is resolved.
Remove globalChanges:
It is used for freezing screen that is no-op with shell transition.
Temporarily use UpdateConfigurationResult to keep original behavior.
Bug: 258618073
Test: ActivityRecordTests DisplayContentTests
Change-Id: Ifa95f4d74551a30650ea1f046f0e5f25400cb84d
27 files changed