From f163861b4742e5da0841a0a6c18e87451d6914b2 Mon Sep 17 00:00:00 2001 From: Mugurell Date: Thu, 11 Jun 2020 10:15:39 +0300 Subject: [PATCH] For #11177 - Load all share targets in the horizontal share menu This was previously regressed by having the RecyclerViews for "recent" and "all" items put inside a HorizontalScrollView which would then prevent the RecyclerViews from actually scrolling, recycling, showing new items. As a quick solution that would keep the desired behavior the "all" items list is now a child of a RelativeLayout which will allow it to load all items at once and so all the share targets will be available to the user but which also means no recycling. The RecyclerView for the "recent" items uses a `RECENT_APPS_LIMIT = 6` so this does not need the same "fix" as all the items would fit the screen without any issue. --- app/src/main/res/layout/share_to_apps.xml | 33 ++++++++++++++++------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/app/src/main/res/layout/share_to_apps.xml b/app/src/main/res/layout/share_to_apps.xml index c9df0d4ef..3f654bcfa 100644 --- a/app/src/main/res/layout/share_to_apps.xml +++ b/app/src/main/res/layout/share_to_apps.xml @@ -71,21 +71,34 @@ app:layout_constraintStart_toEndOf="@+id/recentAppsContainer" app:layout_constraintTop_toTopOf="parent" /> - + + app:layout_constraintTop_toBottomOf="@id/apps_link_header"> + + +