Merge "Inline getter in InputMethodBindingController"

This commit is contained in:
Nikolas Havrikov
2023-01-16 14:27:39 +00:00
committed by Android (Google) Code Review

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