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

Commit 246d11bf authored by Becky Qiu's avatar Becky Qiu
Browse files

[Toast] Add a new extra for the target to record the threshold score.

Bug: 269309051
Test: e2e test with AiAi and unit tests.
Flag: not needed, using launcher version and AiAi flag.
Change-Id: I2237858e011af4be3241c0173524c189a394f312
parent 53a5086e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -197,6 +197,9 @@ public class SearchTargetExtras {
    public static final String BUNDLE_EXTRA_SUGGEST_RAW_TEXT = "suggest_raw_text";
    public static final String BUNDLE_EXTRA_SUGGEST_TRUNCATE_START = "suggest_truncate_start";

    /** Score threshold boosting the target. */
    public static final String BUNDLE_EXTRA_SCORE_THRESHOLD = "score_threshold";

    /** Web data related helper methods */
    public static boolean isEntity(@Nullable SearchTarget target) {
        return target != null && target.getExtras() != null