Use new action_delete and action_delete_account

This commit is contained in:
Benoit Marty
2026-04-21 14:32:11 +02:00
committed by Benoit Marty
parent c343df8351
commit a662a5a045
6 changed files with 10 additions and 8 deletions
@@ -278,7 +278,7 @@ private fun ColumnScope.GeneralSection(
)
if (state.canDeactivateAccount) {
ListItem(
headlineContent = { Text(stringResource(id = CommonStrings.action_deactivate_account)) },
headlineContent = { Text(stringResource(id = CommonStrings.action_delete_account)) },
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.Delete())),
style = ListItemStyle.Destructive,
onClick = onDeactivateClick,
@@ -407,7 +407,7 @@ class PreferencesRootViewTest {
),
onDeactivateClick = callback,
)
rule.clickOn(CommonStrings.action_deactivate_account)
rule.clickOn(CommonStrings.action_delete_account)
}
}
@@ -420,7 +420,7 @@ class PreferencesRootViewTest {
eventSink = eventsRecorder,
),
)
rule.onNodeWithText(rule.activity.getString(CommonStrings.action_deactivate_account)).assertDoesNotExist()
rule.onNodeWithText(rule.activity.getString(CommonStrings.action_delete_account)).assertDoesNotExist()
}
@Test