Fix missing item decorator for the search recycler view

Bug: 267200724
Test: manual
Change-Id: Ibae6607cb4473d986f48b6aed3f2ef98c3857399
This commit is contained in:
hyunyoungs
2023-01-31 00:56:17 -08:00
parent ba73400fe1
commit 5654d6a63b

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.