fixed again incorrect detection of the Contacts search field as an email field
This commit is contained in:
parent
12f3db753a
commit
cabf69fa27
1 changed files with 2 additions and 6 deletions
|
|
@ -43,13 +43,9 @@ public class InputType extends StandardInputType {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isActionDone = (field.imeOptions & EditorInfo.IME_MASK_ACTION) == EditorInfo.IME_ACTION_DONE;
|
|
||||||
boolean notNavigateNext = (field.imeOptions & EditorInfo.IME_FLAG_NAVIGATE_NEXT) != EditorInfo.IME_FLAG_NAVIGATE_NEXT;
|
|
||||||
boolean notNavigatePrevious = (field.imeOptions & EditorInfo.IME_FLAG_NAVIGATE_PREVIOUS) != EditorInfo.IME_FLAG_NAVIGATE_PREVIOUS;
|
|
||||||
|
|
||||||
return
|
return
|
||||||
(isAppInput("com.android.contacts", 33) || isAppInput("com.google.android.contacts", 33))
|
(isAppInput("com.android.contacts", 33)) // only detect the old Contacts
|
||||||
&& (isActionDone || (notNavigateNext && notNavigatePrevious));
|
&& (field.imeOptions & EditorInfo.IME_FLAG_NO_EXTRACT_UI) == EditorInfo.IME_FLAG_NO_EXTRACT_UI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue