diff --git a/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/contactlist/ui/ContactGroupsScreenContent.kt b/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/contactlist/ui/ContactGroupsScreenContent.kt index a1f8858be2..926f6cddfd 100644 --- a/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/contactlist/ui/ContactGroupsScreenContent.kt +++ b/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/contactlist/ui/ContactGroupsScreenContent.kt @@ -48,8 +48,7 @@ internal fun ContactGroupsScreenContent( ContactListGroupItem( modifier = Modifier.animateItemPlacement(), contact = contactGroupItemUiModel, - actions = actions, - isContactGroupsCrudEnabled = state.isContactGroupsCrudEnabled + actions = actions ) } } diff --git a/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/contactlist/ui/ContactListGroupItem.kt b/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/contactlist/ui/ContactListGroupItem.kt index 783572d37f..500a6f4901 100644 --- a/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/contactlist/ui/ContactListGroupItem.kt +++ b/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/contactlist/ui/ContactListGroupItem.kt @@ -40,6 +40,7 @@ import ch.protonmail.android.mailcommon.presentation.NO_CONTENT_DESCRIPTION import ch.protonmail.android.mailcommon.presentation.compose.MailDimens import ch.protonmail.android.mailcontact.presentation.R import ch.protonmail.android.mailcontact.presentation.model.ContactGroupItemUiModel +import ch.protonmail.android.mailcontact.presentation.utils.ContactFeatureFlags import me.proton.core.compose.theme.ProtonDimens import me.proton.core.compose.theme.ProtonTheme import me.proton.core.compose.theme.defaultNorm @@ -49,7 +50,6 @@ import me.proton.core.compose.theme.defaultSmallWeak internal fun ContactListGroupItem( modifier: Modifier = Modifier, contact: ContactGroupItemUiModel, - isContactGroupsCrudEnabled: Boolean, actions: ContactListScreen.Actions ) { Row( @@ -57,7 +57,7 @@ internal fun ContactListGroupItem( .fillMaxWidth() .clickable( role = Role.Button, - enabled = isContactGroupsCrudEnabled, + enabled = ContactFeatureFlags.ContactGroupDetails.value, onClick = { actions.onContactGroupSelected(contact.labelId) } diff --git a/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/utils/ContactFeatureFlags.kt b/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/utils/ContactFeatureFlags.kt index 73c713ed73..5d2711ba86 100644 --- a/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/utils/ContactFeatureFlags.kt +++ b/mail-contact/presentation/src/main/kotlin/ch/protonmail/android/mailcontact/presentation/utils/ContactFeatureFlags.kt @@ -30,6 +30,7 @@ enum class ContactFeatureFlags(val value: Boolean) { // Send group message ContactGroupSendMessage(BuildConfig.DEBUG), + ContactGroupDetails(true), // Contact import ContactImport(false),