summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/InputMethodManagerService.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-08-07 15:03:24 +0000
committerKen Wakasa <kwakasa@google.com>2013-08-07 15:03:24 +0000
commitc3a1914bd777575cee1917d99d14f05bfd128717 (patch)
tree924db5a2172ca2a05076d981f1052f013aed93ab /services/java/com/android/server/InputMethodManagerService.java
parente9a6f9713ca48aab9a6c87e0645cb0a0af946a11 (diff)
Revert "Reduce the transaction fee of getEnabledInputMethodSubtypeList"
This reverts commit e9a6f9713ca48aab9a6c87e0645cb0a0af946a11. Change-Id: I611d31086d4f02aae5c7021ac92975bd92a59f34
Diffstat (limited to 'services/java/com/android/server/InputMethodManagerService.java')
-rw-r--r--services/java/com/android/server/InputMethodManagerService.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java
index f442f11eb873..da584e2012b4 100644
--- a/services/java/com/android/server/InputMethodManagerService.java
+++ b/services/java/com/android/server/InputMethodManagerService.java
@@ -969,25 +969,19 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
}
/**
- * @param imiId if null, returns enabled subtypes for the current imi
+ * @param imi if null, returns enabled subtypes for the current imi
* @return enabled subtypes of the specified imi
*/
@Override
- public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(String imiId,
+ public List<InputMethodSubtype> getEnabledInputMethodSubtypeList(InputMethodInfo imi,
boolean allowsImplicitlySelectedSubtypes) {
// TODO: Make this work even for non-current users?
if (!calledFromValidUser()) {
- return Collections.<InputMethodSubtype>emptyList();
+ return Collections.emptyList();
}
synchronized (mMethodMap) {
- final InputMethodInfo imi;
- if (imiId == null && mCurMethodId != null) {
+ if (imi == null && mCurMethodId != null) {
imi = mMethodMap.get(mCurMethodId);
- } else {
- imi = mMethodMap.get(imiId);
- }
- if (imi == null) {
- return Collections.<InputMethodSubtype>emptyList();
}
return mSettings.getEnabledInputMethodSubtypeListLocked(
mContext, imi, allowsImplicitlySelectedSubtypes);