Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecb90215 authored by Adam He's avatar Adam He
Browse files

Fix logic in shouldStartNewPartition to avoid null responses.

Bug: 156101069
Test: atest CtsAutoFillServiceTestCases
Change-Id: Idd1aa41745894ef3e2f35a7903ea67b921a0173a
parent dcbb86a7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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) {