Merge "Fix logic in shouldStartNewPartition to avoid null responses." into rvc-dev am: a408006e19 am: 9dcb12579a am: 07dfca8d8d am: 632701151a

Change-Id: Ia61c39c8d5d02c22f08f056c520bb90261e0f54c
This commit is contained in:
Adam He
2020-05-11 20:39:35 +00:00
committed by Automerger Merge Worker

View File

@@ -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) {