refactor: 删除无用代码,优化资源

This commit is contained in:
Super12138 2025-01-15 21:17:23 +08:00
parent 3855caf3cb
commit bfc774be8e
3 changed files with 2 additions and 2 deletions

View file

@ -212,7 +212,6 @@ fun MainPage(viewModel: MainViewModel, modifier: Modifier = Modifier) {
showDeleteConfirmDialog = false
viewModel.apply {
deleteSelectedTodo()
clearAllTodoSelection()
}
},
onDismiss = { showDeleteConfirmDialog = false },

View file

@ -56,7 +56,7 @@ fun ProgressFragment(
)
)
Text(
text = "/",
text = stringResource(R.string.placeholder_divider),
style = MaterialTheme.typography.displayMedium.copy(
fontWeight = FontWeight.Bold
)

View file

@ -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>