From 613073d01b66f29b56e6be3b960d53e23c40f7b2 Mon Sep 17 00:00:00 2001 From: Luca Zanolin Date: Wed, 10 Aug 2011 10:29:06 +0100 Subject: [PATCH] Execute the switching to a different IME in a POOL_EXECUTOR. Using only a single thread may slow down the application, if there is already another thread running. Bug: 5142142 Change-Id: I314480a58af20ea09458ff82e586304fc3c7c070 --- java/src/com/android/inputmethod/latin/SubtypeSwitcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java index f10b1b845..0a391a77e 100644 --- a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java +++ b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java @@ -318,7 +318,7 @@ public class SubtypeSwitcher { // when the API level is 10 or previous. mService.notifyOnCurrentInputMethodSubtypeChanged(subtype); } - }.execute(); + }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } public Drawable getShortcutIcon() {