From 48ad2f9eee78f173e098f8b93b27a0394c1d13c4 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Tue, 6 Dec 2022 20:31:16 +0100 Subject: [PATCH] Ensure the "Apply" button is always visible (#3004) On smaller devices the notification filter listview may be longer than the screen height, and pushes the "Apply" button out of sight. Fix this by: - Set the height of the listview to 0dp and its layout_weight to 1 - Set the layout_weight of the button to 0 This ensures the button always appears (because the listview height is 0dp) and the listview then expands to fill any remaining space (because the layout_weight is 1). Fixes https://github.com/tuskyapp/Tusky/issues/2985 --- app/src/main/res/layout/notifications_filter.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/notifications_filter.xml b/app/src/main/res/layout/notifications_filter.xml index 977b542e..76100f21 100644 --- a/app/src/main/res/layout/notifications_filter.xml +++ b/app/src/main/res/layout/notifications_filter.xml @@ -6,12 +6,14 @@ + android:layout_height="0dp" + android:layout_weight="1" />