From 79294b49c7eb3b09c2024f688910686e1df4cde4 Mon Sep 17 00:00:00 2001 From: Nikolas Havrikov Date: Mon, 15 Nov 2021 11:13:08 +0100 Subject: [PATCH] Remove unwarranted local variable This is a step in a larger refactoring. Bug: 205676419 Test: make Change-Id: I892112f114428af49dae60581dd9ae82ec5ce74a --- .../server/inputmethod/InputMethodBindingController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java b/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java index 160cc11c87d56..a22e7a154ded2 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java @@ -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; }