Move setting curId and bindTime for symmetry
Bug: 205676419 Test: make Change-Id: I5c24d8e833769a7b1cbd055940a3bca70075bdee
This commit is contained in:
@@ -399,7 +399,10 @@ final class InputMethodBindingController {
|
||||
mCurIntent = createImeBindingIntent(info.getComponent());
|
||||
|
||||
if (bindCurrentInputMethodServiceMainConnectionLocked()) {
|
||||
addFreshWindowTokenLocked(displayIdToShowIme, info.getId());
|
||||
mCurId = info.getId();
|
||||
mLastBindTime = SystemClock.uptimeMillis();
|
||||
|
||||
addFreshWindowTokenLocked(displayIdToShowIme);
|
||||
return new InputBindResult(
|
||||
InputBindResult.ResultCode.SUCCESS_WAITING_IME_BINDING,
|
||||
null, null, mCurId, mCurSeq, false);
|
||||
@@ -424,11 +427,9 @@ final class InputMethodBindingController {
|
||||
}
|
||||
|
||||
@GuardedBy("mMethodMap")
|
||||
private void addFreshWindowTokenLocked(int displayIdToShowIme, String methodId) {
|
||||
private void addFreshWindowTokenLocked(int displayIdToShowIme) {
|
||||
Binder token = new Binder();
|
||||
mCurToken = token;
|
||||
mLastBindTime = SystemClock.uptimeMillis();
|
||||
mCurId = methodId;
|
||||
|
||||
mService.setCurTokenDisplayId(displayIdToShowIme);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user