Merge "Update searchables when packages are modified, in case they are enabled/disabled."
This commit is contained in:
committed by
Android (Google) Code Review
commit
7b71e4586b
@@ -97,8 +97,18 @@ public class SearchManagerService extends ISearchManager.Stub {
|
||||
* Refreshes the "searchables" list when packages are added/removed.
|
||||
*/
|
||||
class MyPackageMonitor extends PackageMonitor {
|
||||
|
||||
@Override
|
||||
public void onSomePackagesChanged() {
|
||||
updateSearchables();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPackageModified(String pkg) {
|
||||
updateSearchables();
|
||||
}
|
||||
|
||||
private void updateSearchables() {
|
||||
// Update list of searchable activities
|
||||
getSearchables().buildSearchableList();
|
||||
// Inform all listeners that the list of searchables has been updated.
|
||||
|
||||
Reference in New Issue
Block a user