Loading services/autofill/java/com/android/server/autofill/Session.java +4 −4 Original line number Diff line number Diff line Loading @@ -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); } } Loading Loading @@ -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); Loading Loading @@ -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); } Loading services/autofill/java/com/android/server/autofill/ViewState.java +1 −3 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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; Loading Loading
services/autofill/java/com/android/server/autofill/Session.java +4 −4 Original line number Diff line number Diff line Loading @@ -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); } } Loading Loading @@ -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); Loading Loading @@ -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); } Loading
services/autofill/java/com/android/server/autofill/ViewState.java +1 −3 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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; Loading