From 5654d6a63b04171f0f329582f21479fe6f7f40b6 Mon Sep 17 00:00:00 2001 From: hyunyoungs Date: Tue, 31 Jan 2023 00:56:17 -0800 Subject: [PATCH] Fix missing item decorator for the search recycler view Bug: 267200724 Test: manual Change-Id: Ibae6607cb4473d986f48b6aed3f2ef98c3857399 --- .../launcher3/allapps/ActivityAllAppsContainerView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java index 3bb8fb4391..da4739882a 100644 --- a/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/ActivityAllAppsContainerView.java @@ -426,6 +426,10 @@ public class ActivityAllAppsContainerView 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.