diff options
author | Jim Miller <jaggies@google.com> | 2011-09-02 17:33:53 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2011-09-08 23:47:47 -0700 |
commit | 5541a86efe5f26956e54de49c4a59bf1dab79a78 (patch) | |
tree | 97667080469aac684fbe9fb9118520e7549be9ca /src/com/android/settings/ChooseLockPattern.java | |
parent | a9ec5e5071b1de7b86718e8a4e259ecfd57f8b96 (diff) | |
download | packages_apps_settings-5541a86efe5f26956e54de49c4a59bf1dab79a78.zip packages_apps_settings-5541a86efe5f26956e54de49c4a59bf1dab79a78.tar.gz packages_apps_settings-5541a86efe5f26956e54de49c4a59bf1dab79a78.tar.bz2 |
Fix 5185505: Add weak biometric sensors to security choices.
This adds a simple biometric sensor (face lock) to the security choices.
Updated to disable biometric sensor by default.
Change-Id: I088e5e99cf5f8c7a06a1a992a9257940eb2cc07f
Diffstat (limited to 'src/com/android/settings/ChooseLockPattern.java')
-rw-r--r-- | src/com/android/settings/ChooseLockPattern.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/ChooseLockPattern.java b/src/com/android/settings/ChooseLockPattern.java index 9a34f2f..180eee1 100644 --- a/src/com/android/settings/ChooseLockPattern.java +++ b/src/com/android/settings/ChooseLockPattern.java @@ -507,7 +507,9 @@ public class ChooseLockPattern extends PreferenceActivity { LockPatternUtils utils = mChooseLockSettingsHelper.utils(); final boolean lockVirgin = !utils.isPatternEverChosen(); - utils.saveLockPattern(mChosenPattern); + final boolean isFallback = getActivity().getIntent() + .getBooleanExtra(LockPatternUtils.LOCKSCREEN_BIOMETRIC_WEAK_FALLBACK, false); + utils.saveLockPattern(mChosenPattern, isFallback); utils.setLockPatternEnabled(true); if (lockVirgin) { |