Fix 3296883: Hide PIN characters in ChooseLockPassword

This configures the password entry EditText to numeric password mode
to hide PIN entry characters.

Change-Id: I0e97210f6499c6557c1f0e9e861559a5f8ac1f07
This commit is contained in:
Jim Miller
2011-01-17 15:50:05 -08:00
parent 67c0d58992
commit 3b46f49d2a

View File

@@ -197,7 +197,7 @@ public class ChooseLockPassword extends PreferenceActivity {
int currentType = mPasswordEntry.getInputType(); int currentType = mPasswordEntry.getInputType();
mPasswordEntry.setInputType(mIsAlphaMode ? currentType mPasswordEntry.setInputType(mIsAlphaMode ? currentType
: (currentType | InputType.TYPE_CLASS_NUMBER)); : (InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD));
Intent intent = getActivity().getIntent(); Intent intent = getActivity().getIntent();
final boolean confirmCredentials = intent.getBooleanExtra("confirm_credentials", true); final boolean confirmCredentials = intent.getBooleanExtra("confirm_credentials", true);