mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Clear the staled mFocusedView when toast surface is closed.
Test: manual Bug: 224756660 Change-Id: Iadce94f9138ee375fa9b6e3ef8fb685847312045
This commit is contained in:
@@ -84,6 +84,7 @@ public class ActivityAllAppsContainerView<T extends Context & AppLauncher
|
||||
|
||||
/** Invoke when the current search session is finished. */
|
||||
public void onClearSearchResult() {
|
||||
getMainAdapterProvider().clearHighlightedItem();
|
||||
animateToSearchState(false);
|
||||
rebindAdapters();
|
||||
}
|
||||
@@ -92,6 +93,7 @@ public class ActivityAllAppsContainerView<T extends Context & AppLauncher
|
||||
* Sets results list for search
|
||||
*/
|
||||
public void setSearchResults(ArrayList<AdapterItem> results) {
|
||||
getMainAdapterProvider().clearHighlightedItem();
|
||||
if (getSearchResultList().setSearchResults(results)) {
|
||||
getSearchRecyclerView().onSearchResultsChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user