Enables searching when using work tabs together with fallback search.

Bug: 69966634
Bug: 68713881
Change-Id: I972696575b7559b5baf80b949437dcb2dc885f66
This commit is contained in:
Mario Bertschler
2017-11-28 15:24:25 -08:00
parent 4d9d4542e0
commit 527fa71adc
2 changed files with 16 additions and 4 deletions

View File

@@ -301,7 +301,7 @@ public class AlphabeticalAppsList {
if (mSearchResults != f) {
boolean same = mSearchResults != null && mSearchResults.equals(f);
mSearchResults = f;
updateAdapterItems();
onAppsUpdated();
return !same;
}
return false;
@@ -403,7 +403,7 @@ public class AlphabeticalAppsList {
mApps.clear();
for (AppInfo app : mComponentToAppMap.values()) {
if (mItemFilter == null || mItemFilter.matches(app, null)) {
if (mItemFilter == null || mItemFilter.matches(app, null) || hasFilter()) {
mApps.add(app);
}
}