Commit 3053c274 authored by Moxie Marlinspike's avatar Moxie Marlinspike
Browse files

Use InputType class mask constants.

// FREEBIE
parent b9de6942
......@@ -169,11 +169,11 @@ public abstract class ContactSelectionActivity extends PassphraseRequiredActionB
private static class SearchUtil {
public static boolean isTextInput(EditText editText) {
return (editText.getInputType() & 0x0000000F) == InputType.TYPE_CLASS_TEXT;
return (editText.getInputType() & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_TEXT;
}
public static boolean isPhoneInput(EditText editText) {
return (editText.getInputType() & 0x0000000F) == InputType.TYPE_CLASS_PHONE;
return (editText.getInputType() & InputType.TYPE_MASK_CLASS) == InputType.TYPE_CLASS_PHONE;
}
public static boolean isEmpty(EditText editText) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment