mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Fixing crash during rotation
am: bb702584fa
* commit 'bb702584fa551fab8cffbb0ae5459d9efd16ce2a':
Fixing crash during rotation
This commit is contained in:
@@ -587,16 +587,18 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
|
||||
@Override
|
||||
public void onSearchResult(String query, ArrayList<ComponentKey> apps) {
|
||||
if (apps != null) {
|
||||
mApps.setOrderedFilter(apps);
|
||||
if (mApps.setOrderedFilter(apps)) {
|
||||
mAppsRecyclerView.onSearchResultsChanged();
|
||||
}
|
||||
mAdapter.setLastSearchQuery(query);
|
||||
mAppsRecyclerView.onSearchResultsChanged();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearSearchResult() {
|
||||
mApps.setOrderedFilter(null);
|
||||
mAppsRecyclerView.onSearchResultsChanged();
|
||||
if (mApps.setOrderedFilter(null)) {
|
||||
mAppsRecyclerView.onSearchResultsChanged();
|
||||
}
|
||||
|
||||
// Clear the search query
|
||||
mSearchQueryBuilder.clear();
|
||||
|
||||
Reference in New Issue
Block a user