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

Commit 97325db8 authored by Bjorn Bringert's avatar Bjorn Bringert
Browse files

Add non-static version of SearchManager.getSuggestions().

parent a68ca641
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -1803,6 +1803,19 @@ public class SearchManager
                && defaultSearchable.getSearchActivity().equals(searchable.getSearchActivity());
    }
    
    /**
     * Gets a cursor with search suggestions.
     *
     * @param searchable Information about how to get the suggestions.
     * @param query The search text entered (so far).
     * @return a cursor with suggestions, or <code>null</null> the suggestion query failed.
     *
     * @hide because SearchableInfo is not part of the API.
     */
    public Cursor getSuggestions(SearchableInfo searchable, String query) {
        return getSuggestions(mContext, searchable, query);
    }

    /**
     * Gets a cursor with search suggestions. This method is static so that it can
     * be used from non-Activity context.