commit | 7450cf97404fa9e2d5b5bb2d905dd7dc1887b98a | [log] [tgz] |
---|---|---|
author | Becky Qiu <xuqiu@google.com> | Sat Sep 04 00:35:27 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Sep 04 00:35:27 2021 +0000 |
tree | debff4cd4f4e36a743c3a5bd14fcf84ce49af136 | |
parent | 95e8108771c38dada35480487b629157dbe0b0a1 [diff] | |
parent | 3118d24449306c16a9b86f66cfc4f1c1d7cf4698 [diff] |
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
diff --git a/src_plugins/com/android/systemui/plugins/OneSearch.java b/src_plugins/com/android/systemui/plugins/OneSearch.java index 59ee4f4..6d57c19 100644 --- a/src_plugins/com/android/systemui/plugins/OneSearch.java +++ b/src_plugins/com/android/systemui/plugins/OneSearch.java
@@ -29,7 +29,7 @@ @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 @@ * @param suggest The suggest to get the subtitle for. */ String getSubtitle(Spanned suggest); + + /** Clear any cached data or storage used in search. */ + void clear(); }