diff --git a/app/src/main/java/com/termux/api/DialogActivity.java b/app/src/main/java/com/termux/api/DialogActivity.java index 2ded38a..d717fb2 100644 --- a/app/src/main/java/com/termux/api/DialogActivity.java +++ b/app/src/main/java/com/termux/api/DialogActivity.java @@ -523,7 +523,7 @@ public class DialogActivity extends AppCompatActivity { if (numeric) { flags &= ~InputType.TYPE_CLASS_TEXT; // clear to allow only numbers - flags |= InputType.TYPE_CLASS_NUMBER; + flags |= InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED | InputType.TYPE_NUMBER_FLAG_DECIMAL; } editText.setInputType(flags);