Skip to content

Commit

Permalink
Fix feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Aug 29, 2024
1 parent 123d561 commit 62ed081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fun DaitaConfirmation(navigator: ResultBackNavigator<Boolean>) {
Icon(
modifier = Modifier.fillMaxWidth().height(Dimens.dialogIconHeight),
painter = painterResource(id = R.drawable.icon_alert),
contentDescription = "",
contentDescription = null,
tint = MaterialTheme.colorScheme.onSurface
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ fun VpnSettingsScreen(
HeaderSwitchComposeCell(
title = stringResource(id = R.string.daita),
isToggled = state.isDaitaEnabled,
onCellClicked = { newValueIsEnable ->
if (newValueIsEnable) {
onCellClicked = { enable ->
if (enable) {
navigateToDaitaConfirmation()
} else {
onDisableDaita()
Expand Down

0 comments on commit 62ed081

Please sign in to comment.