fixed typing of decimal numbers not possible in Revolut, because of misdected field subtype
This commit is contained in:
parent
482cde4d5b
commit
cce37ca081
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package io.github.sspanak.tt9.ime.helpers;
|
||||
|
||||
import android.text.InputType;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
|
||||
|
|
@ -53,14 +54,14 @@ abstract public class StandardInputType {
|
|||
public boolean isDecimal() {
|
||||
return
|
||||
isNumeric()
|
||||
&& (field.inputType & android.text.InputType.TYPE_MASK_FLAGS) == android.text.InputType.TYPE_NUMBER_FLAG_DECIMAL;
|
||||
&& (field.inputType & android.text.InputType.TYPE_NUMBER_FLAG_DECIMAL) == android.text.InputType.TYPE_NUMBER_FLAG_DECIMAL;
|
||||
}
|
||||
|
||||
|
||||
public boolean isSignedNumber() {
|
||||
return
|
||||
isNumeric()
|
||||
&& (field.inputType & android.text.InputType.TYPE_MASK_FLAGS) == android.text.InputType.TYPE_NUMBER_FLAG_SIGNED;
|
||||
&& (field.inputType & InputType.TYPE_NUMBER_FLAG_SIGNED) == android.text.InputType.TYPE_NUMBER_FLAG_SIGNED;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue