From e1921a7b4d58c97570277fe83dbe9206f2db496d Mon Sep 17 00:00:00 2001 From: Tarandeep Singh Date: Thu, 11 Apr 2019 15:55:28 -0700 Subject: Allow MSIME to set inactive when window loses focus. MSIME doesn't work when existing InputConnection is restored. The fix is to allow MSIME to activate connection when window gains focus and set inactive when window loses focus. This mimics single session IME. Bug: 128751901 Test: Manually tested using steps in bug. Change-Id: I22cef6c1dacb0ca402840da94a2bf02b989da447 --- .../inputmethodservice/MultiClientInputMethodServiceDelegateImpl.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/java/android/inputmethodservice/MultiClientInputMethodServiceDelegateImpl.java') diff --git a/core/java/android/inputmethodservice/MultiClientInputMethodServiceDelegateImpl.java b/core/java/android/inputmethodservice/MultiClientInputMethodServiceDelegateImpl.java index bbe3a7fe1b31..04db8d625806 100644 --- a/core/java/android/inputmethodservice/MultiClientInputMethodServiceDelegateImpl.java +++ b/core/java/android/inputmethodservice/MultiClientInputMethodServiceDelegateImpl.java @@ -190,4 +190,8 @@ final class MultiClientInputMethodServiceDelegateImpl { boolean isUidAllowedOnDisplay(int displayId, int uid) { return mPrivOps.isUidAllowedOnDisplay(displayId, uid); } + + void setActive(int clientId, boolean active) { + mPrivOps.setActive(clientId, active); + } } -- cgit v1.2.3