Merge "Merge "Don't filter pinned inline suggestions." into rvc-dev am: 56cfc32424 am: 081e6b88ac am: a0c14104a6 am: 42ce1c3280" into rvc-qpr-dev-plus-aosp

This commit is contained in:
Automerger Merge Worker
2020-03-25 23:13:52 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -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;

View File

@@ -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,