Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b224594a authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Fix a concurrency bug that ends up in a crash."

parents ade5ad1d 4097a20b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
    }