Tweak live tile rotation handling
- With ag/15023409, the system will screenshot and cancel the recents animation based on the hint provided by launcher when there is a global config change. As such, we can remove extra handling of the configuration change on the launcher side, and handle the cancel with the provided snapshot. To handle the snapshot, we need to hook into the gesture state recents animation callbacks (which actually are of the lifecycle of the animation and not just the gesture). Bug: 189843542 Test: With live-tile enabled, swipe up to overview and rotate Change-Id: If74f3fc5d47c327f9f5cca8f1f5d23b48cd3c954
This commit is contained in:
@@ -155,6 +155,14 @@ public class RecentsAnimationController {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @see IRecentsAnimationController#cleanupScreenshot()
|
||||
*/
|
||||
@UiThread
|
||||
public void cleanupScreenshot() {
|
||||
UI_HELPER_EXECUTOR.execute(() -> mController.cleanupScreenshot());
|
||||
}
|
||||
|
||||
/**
|
||||
* @see RecentsAnimationControllerCompat#detachNavigationBarFromApp
|
||||
*/
|
||||
@@ -171,6 +179,14 @@ public class RecentsAnimationController {
|
||||
UI_HELPER_EXECUTOR.execute(() -> mController.animateNavigationBarToApp(duration));
|
||||
}
|
||||
|
||||
/**
|
||||
* @see IRecentsAnimationController#setWillFinishToHome(boolean)
|
||||
*/
|
||||
@UiThread
|
||||
public void setWillFinishToHome(boolean willFinishToHome) {
|
||||
UI_HELPER_EXECUTOR.execute(() -> mController.setWillFinishToHome(willFinishToHome));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the final surface transaction on a Task. This is used by Launcher to notify the system
|
||||
* that animating Activity to PiP has completed and the associated task surface should be
|
||||
|
||||
Reference in New Issue
Block a user