1
0
Fork 0

fixed Predictive mode missing in Android 15 Contacts app (thank you for wasting my time, Google)

This commit is contained in:
sspanak 2025-01-06 16:05:58 +02:00 committed by Dimo Karaivanov
parent 8085af9945
commit fec7d62168

View file

@ -11,6 +11,19 @@ public class InputType extends StandardInputType {
super(inputConnection, inputField); super(inputConnection, inputField);
} }
/**
* isContactsAndroid15Field
* "First Name" and "Last Name" fields in Android 15 are specified absolutely incorrectly.
* Thank you for wasting my time, Google!
*/
private boolean isContactsAndroid15Field() {
return
isAppField("com.google.android.contacts", 8288)
&& field.privateImeOptions.contains("requestPhoneticOutput");
}
/** /**
* isDeezerSearchBar * isDeezerSearchBar
* The field for searching songs and artists in Deezer does not support composing text, which * The field for searching songs and artists in Deezer does not support composing text, which
@ -177,7 +190,7 @@ public class InputType extends StandardInputType {
*/ */
@Override @Override
protected boolean isDefectiveText() { protected boolean isDefectiveText() {
return isDuoLingoReportBug(); return isDuoLingoReportBug() || isContactsAndroid15Field();
} }
/** /**