Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9eab5fa authored by Anna Galusza's avatar Anna Galusza
Browse files

Fix issue where (accessibility) keyboard mode callbacks were not always called.

Bug: 28007101

Change-Id: Ie7f992243e5a71bc6fed74cbc0d242d652d7fc12
parent 07a0e79a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1795,11 +1795,10 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
                }
                userState.mSoftKeyboardShowMode = 0;
                userState.mServiceChangingSoftKeyboardMode = null;
            }

                notifySoftKeyboardShowModeChangedLocked(userState.mSoftKeyboardShowMode);
            }
        }
    }

    private MagnificationSpec getCompatibleMagnificationSpecLocked(int windowId) {
        IBinder windowToken = mGlobalWindowTokens.get(windowId);
@@ -4355,6 +4354,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
                    }
                } else if (mAccessibilitySoftKeyboardModeUri.equals(uri)) {
                    if (readSoftKeyboardShowModeChangedLocked(userState)) {
                        notifySoftKeyboardShowModeChangedLocked(userState.mSoftKeyboardShowMode);
                        onUserStateChangedLocked(userState);
                    }
                }