Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1702291 authored by Nikolas Havrikov's avatar Nikolas Havrikov
Browse files

Move setting curId and bindTime for symmetry

Bug: 205676419
Test: make
Change-Id: I5c24d8e833769a7b1cbd055940a3bca70075bdee
parent 5ae6910b
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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);