Merge "Finish recents animation upon home rotation" into sc-dev am: 1969cd154e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14260273 Change-Id: I3c1ab73e67cedc153db6a0a811e607c255151532
This commit is contained in:
@@ -2340,6 +2340,15 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
@Override
|
||||
protected void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
if (LIVE_TILE.get() && mRunningTaskId != -1) {
|
||||
switchToScreenshot(
|
||||
() -> finishRecentsAnimation(true, this::onConfigurationChangedInternal));
|
||||
} else {
|
||||
onConfigurationChangedInternal();
|
||||
}
|
||||
}
|
||||
|
||||
private void onConfigurationChangedInternal() {
|
||||
final int rotation = mActivity.getDisplay().getRotation();
|
||||
if (mOrientationState.setRecentsRotation(rotation)) {
|
||||
updateOrientationHandler();
|
||||
|
||||
Reference in New Issue
Block a user