fixed the compatibility issue with MS Teams on Android 11 or higher, that completely prevented starting up (actually, hacked it)
This commit is contained in:
parent
3be8e9626d
commit
ee51ec888c
2 changed files with 15 additions and 1 deletions
|
|
@ -158,6 +158,20 @@ public class InputType extends StandardInputType {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* isTeams
|
||||
* M$ Teams seems to control the keyboard visibility on its own. Initially, it always reports
|
||||
* the input fields as TYPE_NULL, but once the keyboard accepts the show request, it switches to
|
||||
* TYPE_CLASS_TEXT. This method used to enforce us to stay active at all times in Teams.
|
||||
* The problem does not occur on all Android versions. I was able to reproduce it only on Unihertz
|
||||
* Atom L (Android 11), but not on Energizer H620S (Android 10). The bug report also suggests it
|
||||
* occurs on newer versions. See: <a href="https://github.com/sspanak/tt9/issues/749">#749</a>.
|
||||
*/
|
||||
public boolean isTeams() {
|
||||
return isAppField("com.microsoft.teams", EditorInfo.TYPE_NULL);
|
||||
}
|
||||
|
||||
|
||||
public boolean isUs() {
|
||||
return isUs;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ public abstract class TypingHandler extends KeyPadHandler {
|
|||
* We do not want to handle any of these, hence we pass through all input to the system.
|
||||
*/
|
||||
protected int determineInputModeId() {
|
||||
if (!inputType.isValid() || (inputType.isLimited() && !inputType.isTermux())) {
|
||||
if (!inputType.isValid() || (inputType.isLimited() && !inputType.isTeams() && !inputType.isTermux())) {
|
||||
return InputMode.MODE_PASSTHROUGH;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue