mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix privacy item binding
This commit is contained in:
+1
-1
@@ -17,6 +17,6 @@
|
|||||||
package io.element.android.features.createroom.impl.configureroom
|
package io.element.android.features.createroom.impl.configureroom
|
||||||
|
|
||||||
enum class RoomPrivacy {
|
enum class RoomPrivacy {
|
||||||
Public,
|
|
||||||
Private,
|
Private,
|
||||||
|
Public,
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -38,13 +38,13 @@ fun roomPrivacyItems(): ImmutableList<RoomPrivacyItem> {
|
|||||||
return RoomPrivacy.values()
|
return RoomPrivacy.values()
|
||||||
.map {
|
.map {
|
||||||
when (it) {
|
when (it) {
|
||||||
RoomPrivacy.Public -> RoomPrivacyItem(
|
RoomPrivacy.Private -> RoomPrivacyItem(
|
||||||
privacy = it,
|
privacy = it,
|
||||||
icon = Icons.Outlined.Lock,
|
icon = Icons.Outlined.Lock,
|
||||||
title = stringResource(R.string.screen_create_room_private_option_title),
|
title = stringResource(R.string.screen_create_room_private_option_title),
|
||||||
description = stringResource(R.string.screen_create_room_private_option_description),
|
description = stringResource(R.string.screen_create_room_private_option_description),
|
||||||
)
|
)
|
||||||
RoomPrivacy.Private -> RoomPrivacyItem(
|
RoomPrivacy.Public -> RoomPrivacyItem(
|
||||||
privacy = it,
|
privacy = it,
|
||||||
icon = Icons.Outlined.Public,
|
icon = Icons.Outlined.Public,
|
||||||
title = stringResource(R.string.screen_create_room_public_option_title),
|
title = stringResource(R.string.screen_create_room_public_option_title),
|
||||||
|
|||||||
Reference in New Issue
Block a user