Use new action_delete and action_delete_account
This commit is contained in:
parent
f51c961883
commit
9d054e08b1
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue