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

Commit 8893d30b authored by Ahaan Ugale's avatar Ahaan Ugale
Browse files

Don't filter pinned inline suggestions.

Test: manual
Test: atest android.autofillservice.cts.inline
Bug: 152350380
Change-Id: I98b2e18bef4f9b291fe93e8b8d9aa1331630a7d8
parent ae7d379b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -49,7 +49,8 @@ public final class InlinePresentation implements Parcelable {
    private final @NonNull InlinePresentationSpec mInlinePresentationSpec;

    /**
     * Indicates whether the UI should be pinned, hence non-scrollable, in the host.
     * Indicates whether the UI should be pinned, hence non-scrollable and non-filterable, in the
     * host.
     */
    private final boolean mPinned;

+2 −1
Original line number Diff line number Diff line
@@ -165,7 +165,8 @@ public final class InlineSuggestionFactory {
                Slog.w(TAG, "InlinePresentation not found in dataset");
                continue;
            }
            if (!includeDataset(dataset, fieldIndex, filterText)) {
            if (!inlinePresentation.isPinned()  // don't filter pinned suggestions
                    && !includeDataset(dataset, fieldIndex, filterText)) {
                continue;
            }
            InlineSuggestion inlineSuggestion = createInlineSuggestion(isAugmented, dataset,