Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3882486d authored by Ben Murdoch's avatar Ben Murdoch
Browse files

Allow fractional and signed input for number fields.

Bug: 5150575
Change-Id: I36f8dd59f630d77ea3f4ef6271f4cbaaaa3df0ad
parent 5414a167
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1023,7 +1023,8 @@ import junit.framework.Assert;
                break;
                break;
            case NUMBER:
            case NUMBER:
                // inputType needs to be overwritten because of the different class.
                // inputType needs to be overwritten because of the different class.
                inputType = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_NORMAL;
                inputType = InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_NORMAL
                        | InputType.TYPE_NUMBER_FLAG_SIGNED | InputType.TYPE_NUMBER_FLAG_DECIMAL;
                // Number and telephone do not have both a Tab key and an
                // Number and telephone do not have both a Tab key and an
                // action, so set the action to NEXT
                // action, so set the action to NEXT
                imeOptions |= EditorInfo.IME_ACTION_NEXT;
                imeOptions |= EditorInfo.IME_ACTION_NEXT;