Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf153b3b

Browse files
committed
Move connection getter
1 parent63d8ca6 commitf153b3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎app/src/main/java/rkr/simplekeyboard/inputmethod/latin/RichInputConnection.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ private void setTextAroundCursor(final SurroundingText textAroundCursor) {
124124
* Reload the cached text from the EditorInfo.
125125
*/
126126
publicvoidreloadTextCache(finalEditorInfoeditorInfo) {
127+
mIC =mLatinIME.getCurrentInputConnection();
128+
127129
if (mExpectedSelStart !=INVALID_CURSOR_POSITION &&mExpectedSelEnd !=INVALID_CURSOR_POSITION) {
128130
// Updated by onUpdateSelection, don't override as editorInfo might be invalid
129131
return;
130132
}
131-
132-
mIC =mLatinIME.getCurrentInputConnection();
133133
updateSelection(editorInfo.initialSelStart,editorInfo.initialSelEnd);
134134

135135
if (Build.VERSION.SDK_INT >=Build.VERSION_CODES.S) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp