diff --git a/vector/src/main/java/im/vector/app/core/ui/list/GenericItem.kt b/vector/src/main/java/im/vector/app/core/ui/list/GenericItem.kt index 65e80bf7f4..01d318a25b 100644 --- a/vector/src/main/java/im/vector/app/core/ui/list/GenericItem.kt +++ b/vector/src/main/java/im/vector/app/core/ui/list/GenericItem.kt @@ -89,9 +89,11 @@ abstract class GenericItem : VectorEpoxyModel() { holder.titleIcon.isVisible = false } - when (style) { - STYLE.BIG_TEXT -> holder.titleText.textSize = 18f - STYLE.NORMAL_TEXT -> holder.titleText.textSize = 14f + holder.titleText.textSize = when (style) { + STYLE.BIG_TEXT -> 18f + STYLE.NORMAL_TEXT -> 14f + STYLE.TITLE -> 20f + STYLE.SUBHEADER -> 16f } holder.descriptionText.setTextOrHide(description) diff --git a/vector/src/main/java/im/vector/app/features/home/HomeActivity.kt b/vector/src/main/java/im/vector/app/features/home/HomeActivity.kt index 452afd434b..6e268736e0 100644 --- a/vector/src/main/java/im/vector/app/features/home/HomeActivity.kt +++ b/vector/src/main/java/im/vector/app/features/home/HomeActivity.kt @@ -56,6 +56,7 @@ import im.vector.app.features.popup.VerificationVectorAlert import im.vector.app.features.rageshake.VectorUncaughtExceptionHandler import im.vector.app.features.settings.VectorPreferences import im.vector.app.features.settings.VectorSettingsActivity +import im.vector.app.features.spaces.ShareSpaceBottomSheet import im.vector.app.features.spaces.SpaceCreationActivity import im.vector.app.features.spaces.SpacePreviewActivity import im.vector.app.features.spaces.SpaceSettingsMenuBottomSheet @@ -168,7 +169,11 @@ class HomeActivity : is HomeActivitySharedAction.ShowSpaceSettings -> { // open bottom sheet SpaceSettingsMenuBottomSheet - .newInstance(sharedAction.spaceId) + .newInstance(sharedAction.spaceId, object : SpaceSettingsMenuBottomSheet.InteractionListener { + override fun onShareSpaceSelected(spaceId: String) { + ShareSpaceBottomSheet.show(supportFragmentManager, spaceId) + } + }) .show(supportFragmentManager, "SPACE_SETTINGS") } }.exhaustive diff --git a/vector/src/main/java/im/vector/app/features/spaces/SpaceSettingsMenuBottomSheet.kt b/vector/src/main/java/im/vector/app/features/spaces/SpaceSettingsMenuBottomSheet.kt index 4477c048dd..29472dcf28 100644 --- a/vector/src/main/java/im/vector/app/features/spaces/SpaceSettingsMenuBottomSheet.kt +++ b/vector/src/main/java/im/vector/app/features/spaces/SpaceSettingsMenuBottomSheet.kt @@ -58,6 +58,12 @@ class SpaceSettingsMenuBottomSheet : VectorBaseBottomSheetDialogFragment summaries.firstOrNull { it.roomId == child.childRoomId }?.let { childSum -> - val isSelected = childSum.roomId == selected?.roomId + val isChildSelected = childSum.roomId == selected?.roomId spaceSummaryItem { avatarRenderer(avatarRenderer) id(child.childRoomId) hasChildren(false) - selected(isSelected) + selected(isChildSelected) matrixItem(MatrixItem.RoomItem(child.childRoomId, child.name, child.avatarUrl)) listener { callback?.onSpaceSelected(childSum) } indent(1)