Fix stuck wallpaper with predictive back

Bug: 315149515
Flag: NONE
Test: Manual, i.e. visually verifying that wallpaper never jumps to a new zoom level with predictive back enabled
Change-Id: I17b12bdfd3ef5c9cffbc64df3d26ae140e506dc6
This commit is contained in:
Johannes Gallmann
2024-01-05 11:29:24 +01:00
parent 78611ea4ca
commit d0aa5b82db

View File

@@ -1087,7 +1087,12 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
}
backgroundRadiusAnim.addListener(
AnimatorListeners.forEndCallback(depthController::dispose));
AnimatorListeners.forEndCallback(() -> {
// reset the depth to match the main depth controller's depth
depthController.stateDepth
.setValue(mLauncher.getDepthController().stateDepth.getValue());
depthController.dispose();
}));
return backgroundRadiusAnim;
}