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

Commit 2528aced authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Don't start a partition when session is pending FillResponse authentication." into oc-dev

am: 6f5db9a2

Change-Id: If5cbb0c7b3617f66aa823859af971358f1c01ccf
parents 39ffe49a 6f5db9a2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -609,6 +609,13 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
    }

    private ViewState startPartitionLocked(AutofillId id, AutofillValue value) {
        // TODO(b/33197203 , b/35707731): temporary workaround until partitioning supports auth
        if (mResponseWaitingAuth != null) {
            final ViewState viewState =
                    new ViewState(this, id, value, this, ViewState.STATE_WAITING_RESPONSE_AUTH);
            mViewStates.put(id, viewState);
            return viewState;
        }
        if (DEBUG) {
            Slog.d(TAG, "Starting partition for view id " + id);
        }
+2 −0
Original line number Diff line number Diff line
@@ -61,6 +61,8 @@ final class ViewState {
    public static final int STATE_STARTED_PARTITION = 0x20;
    /** User select a dataset in this view, but service must authenticate first. */
    public static final int STATE_WAITING_DATASET_AUTH = 0x40;
    // TODO(b/33197203 , b/35707731): temporary workaround until partitioning supports auth
    public static final int STATE_WAITING_RESPONSE_AUTH = 0x80;

    public final AutofillId id;
    private final Listener mListener;