Skip to content

Commit

Permalink
Merge pull request #10983 from nextcloud/backport/10974/stable-3.22
Browse files Browse the repository at this point in the history
[stable-3.22] List fragments: Add empty list as a child of SwipeRefreshLayout, not outside it.
  • Loading branch information
AlvaroBrey authored Nov 3, 2022
2 parents 358d883 + 45c8a86 commit 72422d4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions app/src/main/res/layout/list_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@
android:footerDividersEnabled="false"
android:visibility="visible"
app:layout_behavior="@string/appbar_scrolling_view_behavior">

<com.owncloud.android.ui.EmptyRecyclerView
android:id="@+id/list_root"
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent">
<com.owncloud.android.ui.EmptyRecyclerView
android:id="@+id/list_root"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<include
android:id="@+id/empty_list"
layout="@layout/empty_list" />
</FrameLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

<include
android:id="@+id/empty_list"
layout="@layout/empty_list" />

</RelativeLayout>

0 comments on commit 72422d4

Please sign in to comment.