EditPinPreferencepublic class EditPinPreference extends android.preference.EditTextPreference TODO: Add a soft dialpad for PIN entry. |
Fields Summary |
---|
private boolean | mDialogOpen | private OnPinEnteredListener | mPinListener |
Methods Summary |
---|
public boolean | isDialogOpen()
return mDialogOpen;
| protected void | onBindDialogView(android.view.View view)
super.onBindDialogView(view);
final EditText editText = (EditText) view.findViewById(android.R.id.edit);
if (editText != null) {
editText.setSingleLine(true);
editText.setTransformationMethod(PasswordTransformationMethod.getInstance());
editText.setKeyListener(DigitsKeyListener.getInstance());
}
| protected void | onDialogClosed(boolean positiveResult)
super.onDialogClosed(positiveResult);
mDialogOpen = false;
if (mPinListener != null) {
mPinListener.onPinEntered(this, positiveResult);
}
| public void | setOnPinEnteredListener(com.android.settings.EditPinPreference$OnPinEnteredListener listener)
mPinListener = listener;
| public void | showPinDialog()
mDialogOpen = true;
showDialog(null);
|
|