mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 13:48:26 +00:00
Use InputType class mask constants.
// FREEBIE
This commit is contained in:
parent
8b986ae094
commit
47b21707be
@ -169,11 +169,11 @@ public abstract class ContactSelectionActivity extends PassphraseRequiredActionB
|
|||||||
private static class SearchUtil {
|
private static class SearchUtil {
|
||||||
|
|
||||||
public static boolean isTextInput(EditText editText) {
|
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) {
|
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) {
|
public static boolean isEmpty(EditText editText) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user