Merge "Remove unnecessary wallpaper adjustment on transition" into tm-qpr-dev
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user