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

Commit 633939a7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Removed unused variable (ViewState.mSession)."

parents eab8ebbd b3f1c6c8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -312,8 +312,8 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
                                Slog.d(TAG, "Setting urlBar as id=" + urlBarId + " and domain "
                                        + mUrlBar.getWebDomain());
                            }
                            final ViewState viewState = new ViewState(Session.this, urlBarId,
                                    Session.this, ViewState.STATE_URL_BAR);
                            final ViewState viewState = new ViewState(urlBarId, Session.this,
                                    ViewState.STATE_URL_BAR);
                            mViewStates.put(urlBarId, viewState);
                        }
                    }
@@ -2149,7 +2149,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
                    || action == ACTION_VIEW_ENTERED) {
                if (sVerbose) Slog.v(TAG, "Creating viewState for " + id);
                boolean isIgnored = isIgnoredLocked(id);
                viewState = new ViewState(this, id, this,
                viewState = new ViewState(id, this,
                        isIgnored ? ViewState.STATE_IGNORED : ViewState.STATE_INITIAL);
                mViewStates.put(id, viewState);

@@ -2629,7 +2629,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
        if (viewState != null)  {
            viewState.setState(state);
        } else {
            viewState = new ViewState(this, id, this, state);
            viewState = new ViewState(id, this, state);
            if (sVerbose) {
                Slog.v(TAG, "Adding autofillable view with id " + id + " and state " + state);
            }
+1 −3
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@ final class ViewState {
    public final AutofillId id;

    private final Listener mListener;
    private final Session mSession;

    private FillResponse mResponse;
    private AutofillValue mCurrentValue;
@@ -87,8 +86,7 @@ final class ViewState {
    private int mState;
    private String mDatasetId;

    ViewState(Session session, AutofillId id, Listener listener, int state) {
        mSession = session;
    ViewState(AutofillId id, Listener listener, int state) {
        this.id = id;
        mListener = listener;
        mState = state;