summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2015-07-28 00:36:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-28 00:36:00 +0000
commitdcf61a2dfa392fa5994c4ad07869c02929989823 (patch)
treefc5ed7db95bc77cbb6110198f965fa77a51b3895 /src/com/android/settings
parent596ce9bab73204e9c0cd4a4efbb5602f8c6d0024 (diff)
parent35d26096c03fe1419fc1aeea19bf24a821a1c422 (diff)
downloadpackages_apps_Settings-dcf61a2dfa392fa5994c4ad07869c02929989823.zip
packages_apps_Settings-dcf61a2dfa392fa5994c4ad07869c02929989823.tar.gz
packages_apps_Settings-dcf61a2dfa392fa5994c4ad07869c02929989823.tar.bz2
Merge "Fix blank confirm device credential activity" into mnc-dev
Diffstat (limited to 'src/com/android/settings')
-rw-r--r--src/com/android/settings/ConfirmDeviceCredentialBaseActivity.java5
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;
}
}