aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorLuca Zanolin <zano@google.com>2011-08-10 10:29:06 +0100
committerLuca Zanolin <zano@google.com>2011-08-10 10:29:06 +0100
commit613073d01b66f29b56e6be3b960d53e23c40f7b2 (patch)
treeae3af87d65d07b8c5550c60582ec66714f060edf /java/src
parentf098fbbef324df034cc04de04d9b5fe6657238c7 (diff)
downloadlatinime-613073d01b66f29b56e6be3b960d53e23c40f7b2.tar.gz
latinime-613073d01b66f29b56e6be3b960d53e23c40f7b2.tar.xz
latinime-613073d01b66f29b56e6be3b960d53e23c40f7b2.zip
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
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/SubtypeSwitcher.java2
1 files changed, 1 insertions, 1 deletions
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() {