BrowserHomepagePreferencepublic class BrowserHomepagePreference extends android.preference.EditTextPreference implements android.text.TextWatcher
Methods Summary |
---|
public void | afterTextChanged(android.text.Editable s)
AlertDialog dialog = (AlertDialog) getDialog();
// This callback is called before the dialog has been fully constructed
if (dialog != null) {
String url = s.toString();
dialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(
url.length() == 0 || url.equals("about:blank") ||
Regex.WEB_URL_PATTERN.matcher(url).matches());
}
| public void | beforeTextChanged(java.lang.CharSequence s, int start, int count, int after)
| public void | onTextChanged(java.lang.CharSequence s, int start, int before, int count)
|
|