Merge "Fix no apps shown on app info screen" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-24 08:03:26 +00:00
committed by Android (Google) Code Review

View File

@@ -1169,10 +1169,16 @@ public class ManageApplications extends InstrumentedFragment
});
}
public void filterSearch(String query) {
@VisibleForTesting
void filterSearch(String query) {
if (mSearchFilter == null) {
mSearchFilter = new SearchFilter();
}
// If we haven't load apps list completely, don't filter anything.
if(mOriginalEntries == null) {
Log.w(TAG, "Apps haven't loaded completely yet, so nothing can be filtered");
return;
}
mSearchFilter.filter(query);
}