mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
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
This commit is contained in:
parent
f098fbbef3
commit
613073d01b
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user