am 1d1a3d52
: Merge "Fix a bug where null would be converted to "null""
* commit '1d1a3d52b8f12766c7d2c1f2033217fce502f49a': Fix a bug where null would be converted to "null"
This commit is contained in:
commit
4f5f3ebc2f
1 changed files with 4 additions and 2 deletions
|
@ -233,8 +233,10 @@ public final class RichInputConnection {
|
|||
// getCapsMode should be updated to be able to return a "not enough info" result so that
|
||||
// we can get more context only when needed.
|
||||
if (TextUtils.isEmpty(mCommittedTextBeforeComposingText) && 0 != mExpectedCursorPosition) {
|
||||
mCommittedTextBeforeComposingText.append(
|
||||
getTextBeforeCursor(DEFAULT_TEXT_CACHE_SIZE, 0));
|
||||
final CharSequence textBeforeCursor = getTextBeforeCursor(DEFAULT_TEXT_CACHE_SIZE, 0);
|
||||
if (!TextUtils.isEmpty(textBeforeCursor)) {
|
||||
mCommittedTextBeforeComposingText.append(textBeforeCursor);
|
||||
}
|
||||
}
|
||||
// This never calls InputConnection#getCapsMode - in fact, it's a static method that
|
||||
// never blocks or initiates IPC.
|
||||
|
|
Loading…
Reference in a new issue