From b14549e041767a5983b59904df1ce915a51a80ab Mon Sep 17 00:00:00 2001 From: UlrichKu Date: Thu, 20 Apr 2023 19:36:29 +0200 Subject: [PATCH] 3503: SwipeRefreshLayout must be higher level (#3504) * 3503: SwipeRefreshLayout must be higher level * 3503: Fix notifications view a bit * 3503: Wrap recycler views and message views in the swipe-to-refresh if all are present --- .../res/layout-sw640dp/fragment_timeline.xml | 38 +++++++++------- .../fragment_timeline_notifications.xml | 27 ++++++----- .../layout-sw640dp/fragment_view_thread.xml | 16 ++++--- .../res/layout/activity_announcements.xml | 30 +++++++------ app/src/main/res/layout/activity_filters.xml | 25 ++++++----- app/src/main/res/layout/activity_lists.xml | 30 ++++++------- .../res/layout/activity_scheduled_status.xml | 34 +++++++------- .../main/res/layout/fragment_account_list.xml | 26 ++++++----- app/src/main/res/layout/fragment_timeline.xml | 45 +++++++++---------- .../fragment_timeline_notifications.xml | 28 ++++++------ app/src/main/res/layout/fragment_trending.xml | 31 +++++++------ .../main/res/layout/fragment_view_thread.xml | 29 +++++++----- 12 files changed, 193 insertions(+), 166 deletions(-) diff --git a/app/src/main/res/layout-sw640dp/fragment_timeline.xml b/app/src/main/res/layout-sw640dp/fragment_timeline.xml index 53e13a64..6d014e70 100644 --- a/app/src/main/res/layout-sw640dp/fragment_timeline.xml +++ b/app/src/main/res/layout-sw640dp/fragment_timeline.xml @@ -21,30 +21,34 @@ app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" /> - - - + android:layout_height="match_parent"> + + + + - + android:layout_height="match_parent"> + + + + - diff --git a/app/src/main/res/layout-sw640dp/fragment_view_thread.xml b/app/src/main/res/layout-sw640dp/fragment_view_thread.xml index e11b8c25..c4053641 100644 --- a/app/src/main/res/layout-sw640dp/fragment_view_thread.xml +++ b/app/src/main/res/layout-sw640dp/fragment_view_thread.xml @@ -1,6 +1,7 @@ @@ -31,6 +32,14 @@ android:visibility="gone" android:indeterminate="true" android:contentDescription="@string/a11y_label_loading_thread" /> + + @@ -43,11 +52,4 @@ android:layout_gravity="center" android:contentDescription="@string/a11y_label_loading_thread" /> - - diff --git a/app/src/main/res/layout/activity_announcements.xml b/app/src/main/res/layout/activity_announcements.xml index 6ae2da3d..4e75b689 100644 --- a/app/src/main/res/layout/activity_announcements.xml +++ b/app/src/main/res/layout/activity_announcements.xml @@ -21,23 +21,27 @@ android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior"> - + android:layout_height="match_parent"> + + + + - - diff --git a/app/src/main/res/layout/activity_filters.xml b/app/src/main/res/layout/activity_filters.xml index a2ae06c1..0daf03a3 100644 --- a/app/src/main/res/layout/activity_filters.xml +++ b/app/src/main/res/layout/activity_filters.xml @@ -16,18 +16,23 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - + android:layout_height="match_parent"> - + + + + + - + android:layout_height="match_parent"> + + + + + - - - + android:layout_height="match_parent"> + + + + - - - - diff --git a/app/src/main/res/layout/fragment_account_list.xml b/app/src/main/res/layout/fragment_account_list.xml index a6e52e46..7fabdd5c 100644 --- a/app/src/main/res/layout/fragment_account_list.xml +++ b/app/src/main/res/layout/fragment_account_list.xml @@ -9,18 +9,24 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + android:layout_height="match_parent"> + + + + - + diff --git a/app/src/main/res/layout/fragment_timeline.xml b/app/src/main/res/layout/fragment_timeline.xml index e24e4cd3..17230db6 100644 --- a/app/src/main/res/layout/fragment_timeline.xml +++ b/app/src/main/res/layout/fragment_timeline.xml @@ -1,23 +1,32 @@ - + android:layout_height="match_parent"> + + + + + + + + - - - - - - - + android:layout_height="match_parent"> + + + + + @@ -84,14 +96,4 @@ android:layout_height="wrap_content" android:layout_gravity="center" /> - - diff --git a/app/src/main/res/layout/fragment_trending.xml b/app/src/main/res/layout/fragment_trending.xml index db59df72..b461036f 100644 --- a/app/src/main/res/layout/fragment_trending.xml +++ b/app/src/main/res/layout/fragment_trending.xml @@ -11,11 +11,22 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + android:layout_height="match_parent"> + + + + - - - \ No newline at end of file + diff --git a/app/src/main/res/layout/fragment_view_thread.xml b/app/src/main/res/layout/fragment_view_thread.xml index 150fe6b2..d5eaf20b 100644 --- a/app/src/main/res/layout/fragment_view_thread.xml +++ b/app/src/main/res/layout/fragment_view_thread.xml @@ -24,12 +24,24 @@ android:layout_weight="1" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> - + android:layout_height="match_parent"> + + + + + @@ -42,11 +54,4 @@ android:layout_gravity="center" android:contentDescription="@string/a11y_label_loading_thread" /> - -