Loading quickstep/src/com/android/quickstep/OrientationTouchTransformer.java +3 −2 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import static android.view.MotionEvent.ACTION_POINTER_DOWN; import static android.view.MotionEvent.ACTION_UP; import static com.android.launcher3.states.RotationHelper.deltaRotation; import android.content.res.Resources; import android.graphics.Point; import android.graphics.RectF; Loading Loading @@ -359,7 +360,7 @@ class OrientationTouchTransformer { if (mLastRectTouched == null) { return; } if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) { if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) { if (event.getSurfaceRotation() != mActiveTouchRotation) { // With Shell transitions, we should rotated to the orientation at the start // of the gesture not the current display rotation which will happen early Loading @@ -378,7 +379,7 @@ class OrientationTouchTransformer { if (mLastRectTouched == null) { return; } if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) { if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) { if (event.getSurfaceRotation() != mActiveTouchRotation) { // With Shell transitions, we should rotated to the orientation at the start // of the gesture not the current display rotation which will happen early Loading quickstep/src/com/android/quickstep/TaskAnimationManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,8 @@ import java.util.HashMap; public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAnimationListener { public static final boolean ENABLE_SHELL_TRANSITIONS = SystemProperties.getBoolean("persist.debug.shell_transit", false); public static final boolean SHELL_TRANSITIONS_ROTATION = ENABLE_SHELL_TRANSITIONS && SystemProperties.getBoolean("persist.debug.shell_transit_rotate", false); private RecentsAnimationController mController; private RecentsAnimationCallbacks mCallbacks; Loading quickstep/src/com/android/quickstep/util/RecentsOrientedState.java +1 −1 Original line number Diff line number Diff line Loading @@ -341,7 +341,7 @@ public class RecentsOrientedState implements @SurfaceRotation public int getDisplayRotation() { if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) { if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) { // When shell transitions are enabled, both the display and activity rotations should // be the same once the gesture starts return mRecentsActivityRotation; Loading quickstep/src/com/android/quickstep/util/TaskViewSimulator.java +1 −1 Original line number Diff line number Diff line Loading @@ -305,7 +305,7 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy { mOrientationStateId = mOrientationState.getStateId(); getFullScreenScale(); if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) { if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) { // With shell transitions, the display is rotated early so we need to actually use // the rotation when the gesture starts mThumbnailData.rotation = mOrientationState.getTouchRotation(); Loading Loading
quickstep/src/com/android/quickstep/OrientationTouchTransformer.java +3 −2 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import static android.view.MotionEvent.ACTION_POINTER_DOWN; import static android.view.MotionEvent.ACTION_UP; import static com.android.launcher3.states.RotationHelper.deltaRotation; import android.content.res.Resources; import android.graphics.Point; import android.graphics.RectF; Loading Loading @@ -359,7 +360,7 @@ class OrientationTouchTransformer { if (mLastRectTouched == null) { return; } if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) { if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) { if (event.getSurfaceRotation() != mActiveTouchRotation) { // With Shell transitions, we should rotated to the orientation at the start // of the gesture not the current display rotation which will happen early Loading @@ -378,7 +379,7 @@ class OrientationTouchTransformer { if (mLastRectTouched == null) { return; } if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) { if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) { if (event.getSurfaceRotation() != mActiveTouchRotation) { // With Shell transitions, we should rotated to the orientation at the start // of the gesture not the current display rotation which will happen early Loading
quickstep/src/com/android/quickstep/TaskAnimationManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,8 @@ import java.util.HashMap; public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAnimationListener { public static final boolean ENABLE_SHELL_TRANSITIONS = SystemProperties.getBoolean("persist.debug.shell_transit", false); public static final boolean SHELL_TRANSITIONS_ROTATION = ENABLE_SHELL_TRANSITIONS && SystemProperties.getBoolean("persist.debug.shell_transit_rotate", false); private RecentsAnimationController mController; private RecentsAnimationCallbacks mCallbacks; Loading
quickstep/src/com/android/quickstep/util/RecentsOrientedState.java +1 −1 Original line number Diff line number Diff line Loading @@ -341,7 +341,7 @@ public class RecentsOrientedState implements @SurfaceRotation public int getDisplayRotation() { if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) { if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) { // When shell transitions are enabled, both the display and activity rotations should // be the same once the gesture starts return mRecentsActivityRotation; Loading
quickstep/src/com/android/quickstep/util/TaskViewSimulator.java +1 −1 Original line number Diff line number Diff line Loading @@ -305,7 +305,7 @@ public class TaskViewSimulator implements TransformParams.BuilderProxy { mOrientationStateId = mOrientationState.getStateId(); getFullScreenScale(); if (TaskAnimationManager.ENABLE_SHELL_TRANSITIONS) { if (TaskAnimationManager.SHELL_TRANSITIONS_ROTATION) { // With shell transitions, the display is rotated early so we need to actually use // the rotation when the gesture starts mThumbnailData.rotation = mOrientationState.getTouchRotation(); Loading