added a workaround to show the MainView on older Android devices < 9 (#310)
--------- Co-authored-by: Alex Knop <alexknoptech@protonmail.com> Co-authored-by: Dimo Karaivanov <doftor.livain@gmail.com>
This commit is contained in:
parent
60da04fa6e
commit
b985eb1849
1 changed files with 6 additions and 4 deletions
|
|
@ -795,11 +795,13 @@ public class TraditionalT9 extends KeyPadHandler {
|
||||||
* are invisible. This function forces the InputMethodManager to show our window.
|
* are invisible. This function forces the InputMethodManager to show our window.
|
||||||
*/
|
*/
|
||||||
protected void forceShowWindowIfHidden() {
|
protected void forceShowWindowIfHidden() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P
|
if (mInputMode.isPassthrough() || isInputViewShown()) {
|
||||||
&& !mInputMode.isPassthrough()
|
return;
|
||||||
&& !isInputViewShown()
|
}
|
||||||
) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||||
requestShowSelf(InputMethodManager.SHOW_IMPLICIT);
|
requestShowSelf(InputMethodManager.SHOW_IMPLICIT);
|
||||||
|
} else {
|
||||||
|
showWindow(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue