Remove unwarranted local variable

This is a step in a larger refactoring.

Bug: 205676419
Test: make
Change-Id: I892112f114428af49dae60581dd9ae82ec5ce74a
This commit is contained in:
Nikolas Havrikov
2021-11-15 11:13:08 +01:00
parent 7318f9636d
commit 79294b49c7

View File

@@ -385,8 +385,7 @@ final class InputMethodBindingController {
throw new IllegalArgumentException("Unknown id: " + mSelectedMethodId);
}
Intent intent = createImeBindingIntent(info.getComponent());
mCurIntent = intent;
mCurIntent = createImeBindingIntent(info.getComponent());
if (bindCurrentInputMethodServiceMainConnectionLocked()) {
mService.addFreshWindowTokenLocked(displayIdToShowIme, info.getId());
@@ -395,9 +394,9 @@ final class InputMethodBindingController {
null, null, mCurId, mCurSeq, false);
}
mCurIntent = null;
Slog.w(InputMethodManagerService.TAG,
"Failure connecting to input method service: " + intent);
"Failure connecting to input method service: " + mCurIntent);
mCurIntent = null;
return InputBindResult.IME_NOT_CONNECTED;
}