diff options
Diffstat (limited to 'src/com/android/settings/ConfirmDeviceCredentialBaseActivity.java')
-rw-r--r-- | src/com/android/settings/ConfirmDeviceCredentialBaseActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/settings/ConfirmDeviceCredentialBaseActivity.java b/src/com/android/settings/ConfirmDeviceCredentialBaseActivity.java index f56c315..176efbc 100644 --- a/src/com/android/settings/ConfirmDeviceCredentialBaseActivity.java +++ b/src/com/android/settings/ConfirmDeviceCredentialBaseActivity.java @@ -27,6 +27,7 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi private boolean mRestoring; private boolean mDark; private boolean mEnterAnimationPending; + private boolean mFirstTimeVisible = true; @Override protected void onCreate(Bundle savedState) { @@ -62,7 +63,8 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi @Override public void onResume() { super.onResume(); - if (!isChangingConfigurations() && !mRestoring && mDark) { + if (!isChangingConfigurations() && !mRestoring && mDark && mFirstTimeVisible) { + mFirstTimeVisible = false; prepareEnterAnimation(); mEnterAnimationPending = true; } @@ -81,6 +83,7 @@ public abstract class ConfirmDeviceCredentialBaseActivity extends SettingsActivi super.onEnterAnimationComplete(); if (mEnterAnimationPending) { startEnterAnimation(); + mEnterAnimationPending = false; } } |