diff options
author | Jim Miller <jaggies@google.com> | 2011-03-09 14:53:14 -0800 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2011-03-09 14:59:10 -0800 |
commit | 025269df25d6094454a638c6f5eed0397580479c (patch) | |
tree | 6227647530ebbb8200a88619b2591f46c1f4b4e5 /src/com/android/settings/ConfirmLockPassword.java | |
parent | 6adc2ee87fd19a2f3d03896b1054facd8a3e8788 (diff) | |
download | packages_apps_settings-025269df25d6094454a638c6f5eed0397580479c.zip packages_apps_settings-025269df25d6094454a638c6f5eed0397580479c.tar.gz packages_apps_settings-025269df25d6094454a638c6f5eed0397580479c.tar.bz2 |
Fix 3510307: Hide PIN passwords in ConfirmLockPassword
Change-Id: I9389cc37f013fe027df7a0eb0035fc0db8678792
Diffstat (limited to 'src/com/android/settings/ConfirmLockPassword.java')
-rw-r--r-- | src/com/android/settings/ConfirmLockPassword.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/settings/ConfirmLockPassword.java b/src/com/android/settings/ConfirmLockPassword.java index 16c465b..3f4a4f3 100644 --- a/src/com/android/settings/ConfirmLockPassword.java +++ b/src/com/android/settings/ConfirmLockPassword.java @@ -108,7 +108,7 @@ public class ConfirmLockPassword extends PreferenceActivity { int currentType = mPasswordEntry.getInputType(); mPasswordEntry.setInputType(isAlpha ? currentType - : (currentType | InputType.TYPE_CLASS_NUMBER)); + : (InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD)); // Update the breadcrumb (title) if this is embedded in a PreferenceActivity if (activity instanceof PreferenceActivity) { @@ -138,10 +138,10 @@ public class ConfirmLockPassword extends PreferenceActivity { private void handleNext() { final String pin = mPasswordEntry.getText().toString(); if (mLockPatternUtils.checkPassword(pin)) { - + Intent intent = new Intent(); intent.putExtra("password", pin); - + getActivity().setResult(RESULT_OK, intent); getActivity().finish(); } else { |