From e8eb6c23e974c94fabae438022e32b1e6cb32e46 Mon Sep 17 00:00:00 2001 From: Jesper Hansson Date: Thu, 2 Sep 2021 16:36:46 +0200 Subject: [PATCH] Fix layout problem in "All apps" view Fix layout problem which prevents the user from scrolling to the last list item in the "all apps" view when the spinner ("all apps", "installed apps" ,"disable apps") is present. Bug: 199476116 Test: 1. Enter Settings -> All apps 2. Disable any app 3. Scroll to the end of the app list The last item (e.g. YouTube) should not be visible underneath the navigation bar. Change-Id: I1c29fd979697316e48460e466c33f202dcf6a8f4 --- res/layout/manage_applications_apps.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/res/layout/manage_applications_apps.xml b/res/layout/manage_applications_apps.xml index f8f4a76b11a..a9cd72a132a 100644 --- a/res/layout/manage_applications_apps.xml +++ b/res/layout/manage_applications_apps.xml @@ -32,7 +32,10 @@ settings:fastScrollHorizontalTrackDrawable="@drawable/line_drawable" settings:fastScrollVerticalThumbDrawable="@drawable/thumb_drawable" settings:fastScrollVerticalTrackDrawable="@drawable/line_drawable" - settings:layout_constraintTop_toBottomOf="@id/pinned_header"/> + settings:layout_constrainedHeight="true" + settings:layout_constraintVertical_bias="0.0" + settings:layout_constraintTop_toBottomOf="@id/pinned_header" + settings:layout_constraintBottom_toBottomOf="parent"/> + settings:layout_constraintVertical_chainStyle="packed" + settings:layout_constraintVertical_bias="0.0" + settings:layout_constraintTop_toTopOf="parent" + settings:layout_constraintBottom_toTopOf="@id/apps_list"/>