Skip to content

Commit

Permalink
Merge "Hide augmented inline suggestion if field value is changed to …
Browse files Browse the repository at this point in the history
…not empty" into rvc-dev
  • Loading branch information
TreeHugger Robot authored and Android (Google) Code Review committed Apr 16, 2020
2 parents 2556dbf + 4f99c15 commit 7454840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
11 changes: 0 additions & 11 deletions core/java/android/view/autofill/AutofillManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1258,13 +1258,6 @@ public void notifyValueChanged(View view) {
}
}

if (mForAugmentedAutofillOnly) {
if (sVerbose) {
Log.v(TAG, "notifyValueChanged(): not notifying system server on "
+ "augmented-only mode");
}
return;
}
if (!mEnabled || !isActiveLocked()) {
if (!startAutofillIfNeededLocked(view)) {
if (sVerbose) {
Expand Down Expand Up @@ -1299,10 +1292,6 @@ public void notifyValueChanged(View view, int virtualId, AutofillValue value) {
return;
}
synchronized (mLock) {
if (mForAugmentedAutofillOnly) {
if (sVerbose) Log.v(TAG, "notifyValueChanged(): ignoring on augmented only mode");
return;
}
if (!mEnabled || !isActiveLocked()) {
if (sVerbose) {
Log.v(TAG, "notifyValueChanged(" + view.getAutofillId() + ":" + virtualId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2653,6 +2653,11 @@ private void updateViewStateAndUiOnValueChangedLocked(AutofillId id, AutofillVal
} else if (viewState.id.equals(this.mCurrentViewId)
&& (viewState.getState() & ViewState.STATE_INLINE_SHOWN) != 0) {
requestShowInlineSuggestionsLocked(viewState.getResponse(), filterText);
} else if (viewState.id.equals(this.mCurrentViewId)
&& (viewState.getState() & ViewState.STATE_TRIGGERED_AUGMENTED_AUTOFILL) != 0) {
if (!TextUtils.isEmpty(filterText)) {
mInlineSessionController.hideInlineSuggestionsUiLocked(mCurrentViewId);
}
}

viewState.setState(ViewState.STATE_CHANGED);
Expand Down

0 comments on commit 7454840

Please sign in to comment.