Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0149bf0 authored by Robert Carr's avatar Robert Carr
Browse files

Fix rotation animation selection.

The default activity specified value for rotation animation
should be unset, not ROTATE, so that it will not override
window specified versions.

Bug: 37671120
Test: Rotate camera 180 degrees...expect crossfade or jumpcut depending on APK version but never rotate animation.
Change-Id: I6acbf32b3de0e2848565cc6cb6fb62f625053634
parent f8e7cbff
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -883,9 +883,12 @@ public class ActivityInfo extends ComponentInfo
    /**
     * Screen rotation animation desired by the activity, with values as defined
     * for {@link android.view.WindowManager.LayoutParams#rotationAnimation}.
     *
     * -1 means to use the system default.
     *
     * @hide
     */
    public int rotationAnimation = ROTATION_ANIMATION_ROTATE;
    public int rotationAnimation = -1;

    /** @hide */
    public static final int LOCK_TASK_LAUNCH_MODE_DEFAULT = 0;