Fix 3510307: Hide PIN passwords in ConfirmLockPassword
Change-Id: I9389cc37f013fe027df7a0eb0035fc0db8678792
This commit is contained in:
@@ -108,7 +108,7 @@ public class ConfirmLockPassword extends PreferenceActivity {
|
|||||||
|
|
||||||
int currentType = mPasswordEntry.getInputType();
|
int currentType = mPasswordEntry.getInputType();
|
||||||
mPasswordEntry.setInputType(isAlpha ? currentType
|
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
|
// Update the breadcrumb (title) if this is embedded in a PreferenceActivity
|
||||||
if (activity instanceof PreferenceActivity) {
|
if (activity instanceof PreferenceActivity) {
|
||||||
@@ -138,10 +138,10 @@ public class ConfirmLockPassword extends PreferenceActivity {
|
|||||||
private void handleNext() {
|
private void handleNext() {
|
||||||
final String pin = mPasswordEntry.getText().toString();
|
final String pin = mPasswordEntry.getText().toString();
|
||||||
if (mLockPatternUtils.checkPassword(pin)) {
|
if (mLockPatternUtils.checkPassword(pin)) {
|
||||||
|
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
intent.putExtra("password", pin);
|
intent.putExtra("password", pin);
|
||||||
|
|
||||||
getActivity().setResult(RESULT_OK, intent);
|
getActivity().setResult(RESULT_OK, intent);
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user