diff --git a/services/autofill/java/com/android/server/autofill/Session.java b/services/autofill/java/com/android/server/autofill/Session.java index ff4e7bac6cae7..086a8be6d6cf2 100644 --- a/services/autofill/java/com/android/server/autofill/Session.java +++ b/services/autofill/java/com/android/server/autofill/Session.java @@ -2374,9 +2374,9 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState @GuardedBy("mLock") private boolean shouldStartNewPartitionLocked(@NonNull AutofillId id) { final ViewState currentView = mViewStates.get(id); - if (mResponses == null && currentView != null - && (currentView.getState() & ViewState.STATE_PENDING_CREATE_INLINE_REQUEST) == 0) { - return true; + if (mResponses == null) { + return currentView != null && (currentView.getState() + & ViewState.STATE_PENDING_CREATE_INLINE_REQUEST) == 0; } if (mExpiredResponse) {