fixed typing not possible in the Deezer search for songs and artists field
This commit is contained in:
parent
9785b32f19
commit
1d4cec3b12
2 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue