diff options
author | satok <satok@google.com> | 2012-06-20 13:01:09 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-06-20 13:01:09 -0700 |
commit | 56802678a72157675382910e37857cf78e1cefcb (patch) | |
tree | ecfc2a58b860083dde9edb1d9398b25ede9bd214 /services | |
parent | edc34cf55482faa25b48e867bd51ecec74dbd0e8 (diff) | |
parent | 4c0e7152e74d091eb78af8baacd38287ba95a1a1 (diff) | |
download | frameworks_base-56802678a72157675382910e37857cf78e1cefcb.zip frameworks_base-56802678a72157675382910e37857cf78e1cefcb.tar.gz frameworks_base-56802678a72157675382910e37857cf78e1cefcb.tar.bz2 |
Merge "Workaround: Never reset the default IME if the system is not ready" into jb-dev
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/InputMethodManagerService.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index 2d41f43..fdb278d 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java @@ -2668,7 +2668,16 @@ public class InputMethodManagerService extends IInputMethodManager.Stub } } - if (!setSubtypeOnly) { + // Workaround. + // ASEC is not ready in the IMMS constructor. Accordingly, forward-locked + // IMEs are not recognized and considered uninstalled. + // Actually, we can't move everything after SystemReady because + // IMMS needs to run in the encryption lock screen. So, we just skip changing + // the default IME here and try cheking the default IME again in systemReady(). + // TODO: Do nothing before system ready and implement a separated logic for + // the encryption lock screen. + // TODO: ASEC should be ready before IMMS is instantiated. + if (mSystemReady && !setSubtypeOnly) { // Set InputMethod here mSettings.putSelectedInputMethod(imi != null ? imi.getId() : ""); } |