diff options
author | satok <satok@google.com> | 2012-12-04 20:42:56 +0900 |
---|---|---|
committer | satok <satok@google.com> | 2012-12-04 21:16:59 +0900 |
commit | 81f8b7c66750a0a89c8e6b6037136ca169c96f95 (patch) | |
tree | 6a517e3143e31e9dd279f52648b28aa90d4a53a4 /services | |
parent | 16cf643694194176954b709e5ee4dfcb711f2a57 (diff) | |
download | frameworks_base-81f8b7c66750a0a89c8e6b6037136ca169c96f95.zip frameworks_base-81f8b7c66750a0a89c8e6b6037136ca169c96f95.tar.gz frameworks_base-81f8b7c66750a0a89c8e6b6037136ca169c96f95.tar.bz2 |
Fix an issue on installing 3rd-party IME by a non-primary user
Bug: 7573552
Currently IMMS doesn't receive install/uninstall messages. Accordingly enabled IMEs' list is not refreshed properly.
Change-Id: I25e9798a65f528dd270cd6bb1f14b1d887194787
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/InputMethodManagerService.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index 8eb532d..94e0bd4 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java @@ -444,7 +444,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub final int userId = getChangingUserId(); final boolean retval = userId == mSettings.getCurrentUserId(); if (DEBUG) { - Slog.d(TAG, "--- ignore this call back from a background user: " + userId); + if (!retval) { + Slog.d(TAG, "--- ignore this call back from a background user: " + userId); + } } return retval; } @@ -658,7 +660,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub } catch (RemoteException e) { Slog.w(TAG, "Couldn't get current user ID; guessing it's 0", e); } - mMyPackageMonitor.register(mContext, null, true); + mMyPackageMonitor.register(mContext, null, UserHandle.ALL, true); // mSettings should be created before buildInputMethodListLocked mSettings = new InputMethodSettings( |