From d214296f7fa1b1f7824a4847d63b1b06691a6b48 Mon Sep 17 00:00:00 2001 From: Satoshi Kataoka Date: Mon, 12 Nov 2012 18:43:06 +0900 Subject: Fix an issue on LED in IME switcher Bug: 5282186 Change-Id: I66362aefb319a02ca741e40a50b8b345a89c8726 --- services/java/com/android/server/InputMethodManagerService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'services/java/com/android/server/InputMethodManagerService.java') diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index c9ff595..9c533da 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java @@ -2652,6 +2652,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub } InputMethodInfo im = mIms[which]; int subtypeId = mSubtypeIds[which]; + adapter.mCheckedItem = which; + adapter.notifyDataSetChanged(); hideInputMethodMenu(); if (im != null) { if ((subtypeId < 0) @@ -2749,7 +2751,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub private final LayoutInflater mInflater; private final int mTextViewResourceId; private final List mItemsList; - private final int mCheckedItem; + public int mCheckedItem; public ImeSubtypeListAdapter(Context context, int textViewResourceId, List itemsList, int checkedItem) { super(context, textViewResourceId, itemsList); -- cgit v1.1