Merge "Fix missing item decorator for the search recycler view" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2023-01-31 17:52:07 +00:00
committed by Android (Google) Code Review

View File

@@ -426,6 +426,10 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
return;
}
RecyclerView.ItemDecoration decoration = getMainAdapterProvider().getDecorator();
getSearchRecyclerView().removeItemDecoration(decoration);
getSearchRecyclerView().addItemDecoration(decoration);
// replaceAppsRVcontainer() needs to use both mUsingTabs value to remove the old view AND
// showTabs value to create new view. Hence the mUsingTabs new value assignment MUST happen
// after this call.