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

Commit 86917dbb authored by Bjorn Bringert's avatar Bjorn Bringert
Browse files

Unhide SearchManager.SUGGEST_PARAMETER_LIMIT

Both GlobalSearch and the search dialog now pass
SearchManager.SUGGEST_PARAMETER_LIMIT as a query parameter to all
suggestion sources. Exposing this allows suggestion sources
to return only the number of results that the client requires.

Fixes http://b/issue?id=2150992

Change-Id: I17f45d35e8f302b11812f4bb6fee40b31dc15707
parent ffc16544
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -24317,6 +24317,17 @@
 visibility="public"
>
</field>
<field name="SUGGEST_PARAMETER_LIMIT"
 type="java.lang.String"
 transient="false"
 volatile="false"
 value="&quot;limit&quot;"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="SUGGEST_URI_PATH_QUERY"
 type="java.lang.String"
 transient="false"
+1 −2
Original line number Diff line number Diff line
@@ -1592,8 +1592,7 @@ public class SearchManager

    /**
     * Query parameter added to suggestion queries to limit the number of suggestions returned.
     *
     * @hide Pending API council approval
     * This limit is only advisory and suggestion providers may chose to ignore it.
     */
    public final static String SUGGEST_PARAMETER_LIMIT = "limit";