Bläddra i källkod

Merge pull request #10974 from nextcloud/fix/refresh-empty-folder

List fragments: Add empty list as a child of SwipeRefreshLayout, not outside it.
Álvaro Brey 2 år sedan
förälder
incheckning
8f3d3771df
1 ändrade filer med 10 tillägg och 9 borttagningar
  1. 10 9
      app/src/main/res/layout/list_fragment.xml

+ 10 - 9
app/src/main/res/layout/list_fragment.xml

@@ -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>