Merge "Correctly initialize rotation animation hint." into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-08-05 19:32:48 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {