refactor: 删除无用代码,优化资源
This commit is contained in:
parent
3855caf3cb
commit
bfc774be8e
3 changed files with 2 additions and 2 deletions
|
|
@ -212,7 +212,6 @@ fun MainPage(viewModel: MainViewModel, modifier: Modifier = Modifier) {
|
|||
showDeleteConfirmDialog = false
|
||||
viewModel.apply {
|
||||
deleteSelectedTodo()
|
||||
clearAllTodoSelection()
|
||||
}
|
||||
},
|
||||
onDismiss = { showDeleteConfirmDialog = false },
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ fun ProgressFragment(
|
|||
)
|
||||
)
|
||||
Text(
|
||||
text = "/",
|
||||
text = stringResource(R.string.placeholder_divider),
|
||||
style = MaterialTheme.typography.displayMedium.copy(
|
||||
fontWeight = FontWeight.Bold
|
||||
)
|
||||
|
|
|
|||
|
|
@ -31,4 +31,5 @@
|
|||
<string name="action_confirm">Confirm</string>
|
||||
<string name="title_warning">Warning</string>
|
||||
<string name="tip_delete_task">You are about to delete the %s selected tasks. Once deleted, these tasks cannot be recovered. Are you sure you want to delete them?</string>
|
||||
<string name="placeholder_divider" translatable="false">/</string>
|
||||
</resources>
|
||||
Loading…
Reference in a new issue