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
This commit is contained in:
Jesper Hansson
2021-09-02 16:36:46 +02:00
committed by Arc Wang
parent 499d8b26bd
commit e8eb6c23e9

View File

@@ -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"/>
<TextView
android:id="@android:id/empty"
@@ -55,7 +58,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:colorBackground"
settings:layout_constraintTop_toTopOf="parent"/>
settings:layout_constraintVertical_chainStyle="packed"
settings:layout_constraintVertical_bias="0.0"
settings:layout_constraintTop_toTopOf="parent"
settings:layout_constraintBottom_toTopOf="@id/apps_list"/>
</androidx.constraintlayout.widget.ConstraintLayout>