mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix a concurrency bug that ends up in a crash.
Bug: 18085768 Change-Id: I016bec997787839526ddfc521ebb99d0c7b05189
This commit is contained in:
parent
d3a4c51324
commit
4097a20b36
@ -367,7 +367,9 @@ public final class RichInputConnection implements PrivateCommandPerformer {
|
||||
}
|
||||
// This never calls InputConnection#getCapsMode - in fact, it's a static method that
|
||||
// never blocks or initiates IPC.
|
||||
return CapsModeUtils.getCapsMode(mCommittedTextBeforeComposingText, inputType,
|
||||
// TODO: don't call #toString() here. Instead, all accesses to
|
||||
// mCommittedTextBeforeComposingText should be done on the main thread.
|
||||
return CapsModeUtils.getCapsMode(mCommittedTextBeforeComposingText.toString(), inputType,
|
||||
spacingAndPunctuations, hasSpaceBefore);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user