Merge "Remove unnecessary wallpaper adjustment on transition" into tm-qpr-dev

This commit is contained in:
Riddle Hsu
2022-11-30 12:12:51 +00:00
committed by Android (Google) Code Review
2 changed files with 0 additions and 16 deletions

View File

@@ -943,13 +943,6 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
cleanUpInternal();
return;
}
// Ensure that wallpaper visibility is updated with the latest wallpaper target.
for (int i = mParticipants.size() - 1; i >= 0; --i) {
final WindowContainer<?> wc = mParticipants.valueAt(i);
if (isWallpaper(wc) && wc.getDisplayContent() != null) {
wc.getDisplayContent().mWallpaperController.adjustWallpaperWindows();
}
}
mState = STATE_PLAYING;
mStartTransaction = transaction;

View File

@@ -372,15 +372,6 @@ public class WallpaperControllerTests extends WindowTestsBase {
dc.mTransitionController.finishTransition(transit.getToken());
assertFalse(wallpaperWindow.isVisible());
assertFalse(token.isVisible());
// Assume wallpaper was visible. When transaction is ready without wallpaper target,
// wallpaper should be requested to be invisible.
token.setVisibility(true);
transit = dc.mTransitionController.createTransition(TRANSIT_CLOSE);
dc.mTransitionController.collect(token);
transit.onTransactionReady(transit.getSyncId(), t);
assertFalse(token.isVisibleRequested());
assertTrue(token.isVisible());
}
private static void prepareSmallerSecondDisplay(DisplayContent dc, int width, int height) {