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

Commit 341fad40 authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Correctly initialize rotation animation hint.

am: d2265124

Change-Id: I4d17344fba3a55696f0c23d6a03f2dd56b3d2e9e
parents 05ac3f8f d2265124
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -221,7 +221,12 @@ final class ActivityRecord {
    boolean pendingVoiceInteractionStart;   // Waiting for activity-invoked voice session
    IVoiceInteractionSession voiceSession;  // Voice interaction session for this activity

    int mRotationAnimationHint;
    // A hint to override the window specified rotation animation, or -1
    // to use the window specified value. We use this so that
    // we can select the right animation in the cases of starting
    // windows, where the app hasn't had time to set a value
    // on the window.
    int mRotationAnimationHint = -1;

    private static String startingWindowStateToString(int state) {
        switch (state) {