Merge "[OneSearch] Add a clear function in the plugin to clear cache and memory." into sc-v2-dev am: 3118d24449

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15749048

Change-Id: I56c12dd0f9e3ec2289d447e69a7733b6ea8102fd
This commit is contained in:
Becky Qiu
2021-09-04 00:35:27 +00:00
committed by Automerger Merge Worker
@@ -29,7 +29,7 @@ import java.util.ArrayList;
@ProvidesInterface(action = OneSearch.ACTION, version = OneSearch.VERSION)
public interface OneSearch extends Plugin {
String ACTION = "com.android.systemui.action.PLUGIN_ONE_SEARCH";
int VERSION = 1;
int VERSION = 2;
/**
* Get the content provider warmed up.
@@ -53,4 +53,7 @@ public interface OneSearch extends Plugin {
* @param suggest The suggest to get the subtitle for.
*/
String getSubtitle(Spanned suggest);
/** Clear any cached data or storage used in search. */
void clear();
}