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

Commit 64af29f2 authored by Kevin Lim's avatar Kevin Lim
Browse files

Name the key for the Extras attribute to control whether SearchTargets

should show or hide (default) their label.

Bug: 262610184
Test: Tested as part of ag/21087465
Change-Id: Ie253cfcc8a8be236b034ed97a8a9ffb4fb97582e
parent be1ad7b3
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -19,8 +19,8 @@ package com.android.app.search;
import static com.android.app.search.LayoutType.TALL_CARD_WITH_IMAGE_NO_ICON;

import android.app.blob.BlobHandle;
import android.app.search.SearchAction;
import android.app.search.SearchTarget;
import android.os.Bundle;
import android.text.TextUtils;

import androidx.annotation.Nullable;
@@ -112,10 +112,19 @@ public class SearchTargetExtras {
     *  When this flag is false, thumbnails will always be cropped to a square ratio even if
     *  there aren't enough thumbnails to fill the container.
     *
     *  Only relevant in {@link LayoutType.THUMBNAIL_CONTAINER} and {@link LayoutType.THUMBNAIL}.
     *  Only relevant in {@link LayoutType#THUMBNAIL_CONTAINER} and {@link LayoutType#THUMBNAIL}.
     */
    public static final String BUNDLE_EXTRA_SHOULD_FILL_CONTAINER_WIDTH =
            "should_fill_container_width";
    /**
     *  Flag to control whether the SearchTarget's label should be hidden.
     *  When this flag is true, label will be hidden.
     *  When this flag is false (or omitted), {@link SearchAction#mTitle} will be shown.
     */
    public static final String BUNDLE_EXTRA_HIDE_LABEL =
            "hide_label";
    public static final String BUNDLE_EXTRA_SUGGESTION_ACTION_TEXT = "suggestion_action_text";
    public static final String BUNDLE_EXTRA_SUGGESTION_ACTION_RPC = "suggestion_action_rpc";
    public static final String BUNDLE_EXTRA_SUPPORT_QUERY_BUILDER = "support_query_builder";
    public static final String BUNDLE_EXTRA_SUGGEST_RAW_TEXT = "suggest_raw_text";
    public static final String BUNDLE_EXTRA_SUGGEST_TRUNCATE_START = "suggest_truncate_start";