From 4880df35550d233b8002c81b64637d32146605d1 Mon Sep 17 00:00:00 2001 From: Valere Date: Thu, 30 Sep 2021 11:56:07 +0200 Subject: [PATCH 1/2] Change call to action in filter room when space selected --- changelog.d/3048.bugfix | 1 + .../home/room/filtered/FilteredRoomFooterItem.kt | 11 +++++++++++ .../home/room/list/RoomListFooterController.kt | 2 ++ .../src/main/res/layout/item_room_filter_footer.xml | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 changelog.d/3048.bugfix diff --git a/changelog.d/3048.bugfix b/changelog.d/3048.bugfix new file mode 100644 index 0000000000..81fbe7b65e --- /dev/null +++ b/changelog.d/3048.bugfix @@ -0,0 +1 @@ +Room filter no results bad CTA in space mode when a space selected \ No newline at end of file diff --git a/vector/src/main/java/im/vector/app/features/home/room/filtered/FilteredRoomFooterItem.kt b/vector/src/main/java/im/vector/app/features/home/room/filtered/FilteredRoomFooterItem.kt index 5e45004579..4c163f2f56 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/filtered/FilteredRoomFooterItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/filtered/FilteredRoomFooterItem.kt @@ -17,6 +17,7 @@ package im.vector.app.features.home.room.filtered import android.widget.Button +import androidx.core.view.isVisible import com.airbnb.epoxy.EpoxyAttribute import com.airbnb.epoxy.EpoxyModelClass import im.vector.app.R @@ -33,11 +34,21 @@ abstract class FilteredRoomFooterItem : VectorEpoxyModel { diff --git a/vector/src/main/res/layout/item_room_filter_footer.xml b/vector/src/main/res/layout/item_room_filter_footer.xml index 8df6c53032..91790b3811 100644 --- a/vector/src/main/res/layout/item_room_filter_footer.xml +++ b/vector/src/main/res/layout/item_room_filter_footer.xml @@ -12,6 +12,7 @@ android:layout_gravity="center" android:layout_marginTop="56dp" android:text="@string/room_filtering_footer_title" + android:layout_marginBottom="@dimen/layout_vertical_margin" android:textColor="?vctr_content_secondary" />