1
0
Fork 0

fixed typing not possible in the Deezer search for songs and artists field

This commit is contained in:
sspanak 2024-11-27 12:50:15 +02:00 committed by Dimo Karaivanov
parent 9785b32f19
commit 1d4cec3b12
2 changed files with 11 additions and 1 deletions

View file

@ -11,6 +11,16 @@ public class InputType extends StandardInputType {
super(inputConnection, inputField);
}
/**
* isDeezerSearchBar
* The field for searching songs and artists in Deezer does not support composing text, which
* prevents the user from typing normally. This hack detects the search field, so that we can
* disable composing at the right place.
*/
public boolean isDeezerSearchBar() {
return isAppField("deezer.android.app", 32769) && field.imeOptions == 33554438;
}
/**
* isDuoLingoReportBug

View file

@ -31,7 +31,7 @@ public class TextField extends InputField {
super(inputConnection, inputField);
InputType inputType = new InputType(inputConnection, inputField);
isComposingSupported = !inputType.isNumeric() && !inputType.isLimited() && !inputType.isRustDesk();
isComposingSupported = !inputType.isNumeric() && !inputType.isLimited() && !inputType.isRustDesk() && !inputType.isDeezerSearchBar();
isNonText = !inputType.isText();
}