diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-18 17:39:48 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-18 17:39:48 -0700 |
commit | e6dd1fa1851302710ac7845d25d8ad8a5b6ee438 (patch) | |
tree | f5a8545397cd15f5bedf524a0673d88d5dd8d182 /src/com/android/settings/ChooseLockPattern.java | |
parent | 72ed6feab24308a0acd1fa2135afa3476759cf39 (diff) | |
download | packages_apps_settings-e6dd1fa1851302710ac7845d25d8ad8a5b6ee438.zip packages_apps_settings-e6dd1fa1851302710ac7845d25d8ad8a5b6ee438.tar.gz packages_apps_settings-e6dd1fa1851302710ac7845d25d8ad8a5b6ee438.tar.bz2 |
auto import from //branches/cupcake_rel/...@140373
Diffstat (limited to 'src/com/android/settings/ChooseLockPattern.java')
-rw-r--r-- | src/com/android/settings/ChooseLockPattern.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/settings/ChooseLockPattern.java b/src/com/android/settings/ChooseLockPattern.java index 3ddd669..d0c3758 100644 --- a/src/com/android/settings/ChooseLockPattern.java +++ b/src/com/android/settings/ChooseLockPattern.java @@ -481,8 +481,15 @@ public class ChooseLockPattern extends Activity implements View.OnClickListener{ } private void saveChosenPatternAndFinish() { + final boolean lockVirgin = !mLockPatternUtils.isPatternEverChosen(); + mLockPatternUtils.saveLockPattern(mChosenPattern); mLockPatternUtils.setLockPatternEnabled(true); + + if (lockVirgin) { + mLockPatternUtils.setVisiblePatternEnabled(true); + mLockPatternUtils.setTactileFeedbackEnabled(false); + } setResult(RESULT_FINISHED); finish(); |