diff --git a/app/src/main/java/io/github/sspanak/tt9/ime/helpers/InputType.java b/app/src/main/java/io/github/sspanak/tt9/ime/helpers/InputType.java index a3a1970b..9b1bfde8 100644 --- a/app/src/main/java/io/github/sspanak/tt9/ime/helpers/InputType.java +++ b/app/src/main/java/io/github/sspanak/tt9/ime/helpers/InputType.java @@ -47,13 +47,15 @@ public class InputType { * actually dial and call a phone number. While the Phone field is a text * field in any app or a webpage, intended for typing phone numbers. *

- * More info: in this Github issue - * and the PR about calculators. + * More info (chronological order of bugfixing): + * in this Github issue + * the PR about calculators + * Dialer not detected correctly on LG X100S */ - public boolean isSpecialNumeric() { + private boolean isSpecialNumeric() { return - isPhoneNumber() && field.packageName.equals("com.android.dialer") - || isNumeric() && field.packageName.contains("com.android.calculator"); + field.packageName.contains("com.android.calculator") // there is "calculator2", hence the contains() + || field.packageName.equals("com.android.dialer"); }