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

Commit 7b9d10a5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Hide augmented inline suggestion if field value is changed to not...

Merge "Hide augmented inline suggestion if field value is changed to not empty" into rvc-dev am: 74548402 am: 559d7fc4 am: 4c281843 am: 0d449bc7

Change-Id: I5836e679c20dcf860bf41181e9ae6a380532e5c5
parents 1ef6b5e3 0d449bc7
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -1258,13 +1258,6 @@ public final class AutofillManager {
                }
            }

            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) {
@@ -1299,10 +1292,6 @@ public final class AutofillManager {
            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
+5 −0
Original line number Diff line number Diff line
@@ -2653,6 +2653,11 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
        } 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);