From 8852239a77435a7c03f468a95e2ddc156b5a7016 Mon Sep 17 00:00:00 2001 From: sspanak Date: Thu, 22 Aug 2024 15:20:14 +0300 Subject: [PATCH] fixed mixed Dialer/Contacts app always detected as a dialer, even when it has a text field --- app/src/main/java/io/github/sspanak/tt9/hacks/InputType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/github/sspanak/tt9/hacks/InputType.java b/app/src/main/java/io/github/sspanak/tt9/hacks/InputType.java index 872a8058..0cd092b1 100644 --- a/app/src/main/java/io/github/sspanak/tt9/hacks/InputType.java +++ b/app/src/main/java/io/github/sspanak/tt9/hacks/InputType.java @@ -43,7 +43,7 @@ public class InputType extends StandardInputType { public boolean isDumbPhoneDialer(Context context) { // the inputType is not always TYPE_CLASS_PHONE on all devices, so we must not filter by that. - return field.packageName.endsWith(".dialer") && !DeviceInfo.noKeyboard(context); + return field.packageName.endsWith(".dialer") && !DeviceInfo.noKeyboard(context) && !isText(); } @@ -139,6 +139,7 @@ public class InputType extends StandardInputType { *

* More info (chronological order of bug fixing): * the initial GitHub issue about Qin F21 Pro+ + * LG Classic Flip says the dialer is a multi-line text field * the PR about calculators * Dialer not detected correctly on LG X100S * [NO ISSUE] On touchscreen-only phones, in the Dialer app, we mustn't switch to passthrough, because