Fix privacy item binding
This commit is contained in:
parent
b88c1f35a7
commit
d8fd19a324
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue