diff options
| author | 2023-01-10 13:45:21 +0100 | |
|---|---|---|
| committer | 2023-01-10 13:45:21 +0100 | |
| commit | 83fe0d64cf5ac0952a3bf05b49b60ecc588b2ecf (patch) | |
| tree | c682873c945270fa90f2b6f1ea80c98ec5818f1f | |
| parent | b0f1e19c1a8e956d0c5f72f783b7b6aa9e080709 (diff) | |
Inline getter in InputMethodBindingController
Test: make
Change-Id: Id513779a289dd06158a61804c3606907cd36608e
| -rw-r--r-- | services/core/java/com/android/server/inputmethod/InputMethodBindingController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java b/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java index 079234c2f95c..0404e73bafdd 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java @@ -469,11 +469,11 @@ final class InputMethodBindingController { @GuardedBy("ImfLock.class") private boolean bindCurrentInputMethodService(ServiceConnection conn, int flags) { - if (getCurIntent() == null || conn == null) { + if (mCurIntent == null || conn == null) { Slog.e(TAG, "--- bind failed: service = " + mCurIntent + ", conn = " + conn); return false; } - return mContext.bindServiceAsUser(getCurIntent(), conn, flags, + return mContext.bindServiceAsUser(mCurIntent, conn, flags, new UserHandle(mSettings.getCurrentUserId())); } |