Inline getter in InputMethodBindingController

Test: make
Change-Id: Id513779a289dd06158a61804c3606907cd36608e
This commit is contained in:
Nikolas Havrikov
2023-01-10 13:45:21 +01:00
parent b0f1e19c1a
commit 83fe0d64cf

View File

@@ -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()));
}