mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Prevent recents rotation animation if we are in Fixed Landscape
When in this mode we can let the system rotate the device. In other cases we have a fake rotation and so we need to manually rotate. Fix: 401484242 Flag: com.android.launcher3.one_grid_specs Test: Manual testing Change-Id: I74e5cb0363a34edb69b39f9a387b9020116d5632
This commit is contained in:
@@ -2951,7 +2951,8 @@ public abstract class RecentsView<
|
||||
}
|
||||
|
||||
private void animateRecentsRotationInPlace(int newRotation) {
|
||||
if (mOrientationState.isRecentsActivityRotationAllowed()) {
|
||||
if (mOrientationState.isRecentsActivityRotationAllowed()
|
||||
|| mOrientationState.isLauncherFixedLandscape()) {
|
||||
// Let system take care of the rotation
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user