Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
开源群组
Signal-Android
Commits
3053c274
Commit
3053c274
authored
9 years ago
by
Moxie Marlinspike
Browse files
Options
Download
Email Patches
Plain Diff
Use InputType class mask constants.
// FREEBIE
parent
b9de6942
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/org/thoughtcrime/securesms/ContactSelectionActivity.java
src/org/thoughtcrime/securesms/ContactSelectionActivity.java
+2
-2
No files found.
src/org/thoughtcrime/securesms/ContactSelectionActivity.java
View file @
3053c274
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment