Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 190992e6 authored by Luca Zuccarini's avatar Luca Zuccarini Committed by Android (Google) Code Review
Browse files

Merge "[Toast] Disable decorator updates if background drawables are used." into tm-qpr-dev

parents 0af71f85 93958301
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -439,9 +439,11 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
            return;
        }

        if (!FeatureFlags.ENABLE_SEARCH_RESULT_BACKGROUND_DRAWABLES.get()) {
            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