Skip to content

Commit

Permalink
chore: show hide analytics toggle (WPB-10587) (#3319)
Browse files Browse the repository at this point in the history
Signed-off-by: alexandreferris <[email protected]>
  • Loading branch information
alexandreferris authored Aug 14, 2024
1 parent eb15ac3 commit d612887
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.hilt.navigation.compose.hiltViewModel
import com.ramcosta.composedestinations.annotation.RootNavGraph
import com.wire.android.BuildConfig
import com.wire.android.R
import com.wire.android.navigation.Navigator
import com.wire.android.ui.common.colorsScheme
Expand Down Expand Up @@ -90,12 +91,14 @@ fun PrivacySettingsScreenContent(
.fillMaxSize()
.padding(internalPadding)
) {
GroupConversationOptionsItem(
title = stringResource(id = R.string.settings_send_anonymous_usage_data_title),
switchState = SwitchState.Enabled(value = isAnonymousUsageDataEnabled, onCheckedChange = setAnonymousUsageDataEnabled),
arrowType = ArrowType.NONE,
subtitle = stringResource(id = R.string.settings_send_anonymous_usage_data_description)
)
if (BuildConfig.ANALYTICS_ENABLED) {
GroupConversationOptionsItem(
title = stringResource(id = R.string.settings_send_anonymous_usage_data_title),
switchState = SwitchState.Enabled(value = isAnonymousUsageDataEnabled, onCheckedChange = setAnonymousUsageDataEnabled),
arrowType = ArrowType.NONE,
subtitle = stringResource(id = R.string.settings_send_anonymous_usage_data_description)
)
}
WireDivider(color = colorsScheme().outlineVariant)
GroupConversationOptionsItem(
title = stringResource(R.string.settings_send_read_receipts),
Expand Down

0 comments on commit d612887

Please sign in to comment.