Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 7429e06

Browse files
author
Yuncong Zhang
committed
Add braces.
1 parent d457f82 commit 7429e06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Runtime/Plugins/platform/android/editing/InputConnectionAdaptor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,12 @@ public boolean sendKeyEvent(KeyEvent event) {
131131
int selStart = Selection.getSelectionStart(mEditable);
132132
int selEnd = Selection.getSelectionEnd(mEditable);
133133
String text = mEditable.toString();
134-
if(selStart >= 0 && selStart < text.length() && isTrailSurrogate(text.charAt(selStart)))
134+
if(selStart >= 0 && selStart < text.length() && isTrailSurrogate(text.charAt(selStart))) {
135135
selStart++;
136-
if(selEnd >= 0 && selEnd < text.length() && isTrailSurrogate(text.charAt(selEnd)))
136+
}
137+
if(selEnd >= 0 && selEnd < text.length() && isTrailSurrogate(text.charAt(selEnd))) {
137138
selEnd++;
139+
}
138140
if (selEnd > selStart) {
139141
// Delete the selection.
140142
Selection.setSelection(mEditable, selStart);

0 commit comments

Comments
 (0)