Skip to content

Commit 3e21c99

Browse files
satok16Android (Google) Code Review
authored andcommitted
Merge "Fix a logic to recconect IME in InputMethodManagerService"
2 parents 594cb47 + 59b424c commit 3e21c99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/java/com/android/server/InputMethodManagerService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,13 +1362,14 @@ MSG_SHOW_SOFT_INPUT, getImeShowFlags(), mCurMethod,
13621362
mInputShown = true;
13631363
res = true;
13641364
} else if (mHaveConnection && SystemClock.uptimeMillis()
1365-
< (mLastBindTime+TIME_TO_RECONNECT)) {
1365+
>= (mLastBindTime+TIME_TO_RECONNECT)) {
13661366
// The client has asked to have the input method shown, but
13671367
// we have been sitting here too long with a connection to the
13681368
// service and no interface received, so let's disconnect/connect
13691369
// to try to prod things along.
13701370
EventLog.writeEvent(EventLogTags.IMF_FORCE_RECONNECT_IME, mCurMethodId,
13711371
SystemClock.uptimeMillis()-mLastBindTime,1);
1372+
Slog.w(TAG, "Force disconnect/connect to the IME in showCurrentInputLocked()");
13721373
mContext.unbindService(this);
13731374
mContext.bindService(mCurIntent, this, Context.BIND_AUTO_CREATE);
13741375
}

0 commit comments

Comments
 (0)