summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
diff options
context:
space:
mode:
authorEsteban Talavera <etalavera@google.com>2014-08-07 09:59:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-05 00:35:13 +0000
commit00f201e41b5b496327b9578e6fb00fad8b4d9da9 (patch)
tree0c09aedf9068ddb428430cd16108759ef25db26c /packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
parentfaa4b3cb06f3b10ece1f1d246a3530fc2f30a6da (diff)
parentfe0f24cc92b04e03cac3f807859721f1ce7ef54a (diff)
downloadframeworks_base-00f201e41b5b496327b9578e6fb00fad8b4d9da9.zip
frameworks_base-00f201e41b5b496327b9578e6fb00fad8b4d9da9.tar.gz
frameworks_base-00f201e41b5b496327b9578e6fb00fad8b4d9da9.tar.bz2
Merge "Wipe only managed profile when max number of incorrect passwords exceeded" into lmp-dev
Diffstat (limited to 'packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
index 9dd6bc2..1835b8e 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
@@ -57,7 +57,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
}
public KeyguardSecurityContainer(Context context) {
- this(null, null, 0);
+ this(context, null, 0);
}
public KeyguardSecurityContainer(Context context, AttributeSet attrs, int defStyle) {
@@ -240,10 +240,13 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
boolean showTimeout = false;
if (remainingBeforeWipe < LockPatternUtils.FAILED_ATTEMPTS_BEFORE_WIPE_GRACE) {
- // If we reach this code, it means the user has installed a DevicePolicyManager
- // that requests device wipe after N attempts. Once we get below the grace
- // period, we'll post this dialog every time as a clear warning until the
- // bombshell hits and the device is wiped.
+ // The user has installed a DevicePolicyManager that requests a user/profile to be wiped
+ // N attempts. Once we get below the grace period, we post this dialog every time as a
+ // clear warning until the deletion fires.
+ //
+ // TODO: Show a different dialog depending on whether the device will be completely
+ // wiped (i.e. policy is set for the primary profile of the USER_OWNER) or a single
+ // secondary user or managed profile will be removed.
if (remainingBeforeWipe > 0) {
showAlmostAtWipeDialog(failedAttempts, remainingBeforeWipe);
} else {