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
|
showDeleteConfirmDialog = false
|
||||||
viewModel.apply {
|
viewModel.apply {
|
||||||
deleteSelectedTodo()
|
deleteSelectedTodo()
|
||||||
clearAllTodoSelection()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onDismiss = { showDeleteConfirmDialog = false },
|
onDismiss = { showDeleteConfirmDialog = false },
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ fun ProgressFragment(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
text = "/",
|
text = stringResource(R.string.placeholder_divider),
|
||||||
style = MaterialTheme.typography.displayMedium.copy(
|
style = MaterialTheme.typography.displayMedium.copy(
|
||||||
fontWeight = FontWeight.Bold
|
fontWeight = FontWeight.Bold
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -31,4 +31,5 @@
|
||||||
<string name="action_confirm">Confirm</string>
|
<string name="action_confirm">Confirm</string>
|
||||||
<string name="title_warning">Warning</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="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>
|
</resources>
|
||||||
Loading…
Reference in a new issue