Use delete instead of delete for me in call log dialog.

This commit is contained in:
Alex Hart
2023-06-20 13:03:13 -03:00
committed by Nicholas Tinsley
parent e3044b8b85
commit ed4a1d6ddd
2 changed files with 3 additions and 5 deletions

View File

@@ -230,7 +230,7 @@ class CallLogFragment : Fragment(R.layout.call_log_fragment), CallLogAdapter.Cal
val count = callLogActionMode.getCount()
MaterialAlertDialogBuilder(requireContext())
.setTitle(resources.getQuantityString(R.plurals.CallLogFragment__delete_d_calls, count, count))
.setPositiveButton(R.string.CallLogFragment__delete_for_me) { _, _ ->
.setPositiveButton(R.string.CallLogFragment__delete) { _, _ ->
performDeletion(count, viewModel.stageSelectionDeletion())
callLogActionMode.end()
}
@@ -363,7 +363,7 @@ class CallLogFragment : Fragment(R.layout.call_log_fragment), CallLogAdapter.Cal
override fun deleteCall(call: CallLogRow) {
MaterialAlertDialogBuilder(requireContext())
.setTitle(resources.getQuantityString(R.plurals.CallLogFragment__delete_d_calls, 1, 1))
.setPositiveButton(R.string.CallLogFragment__delete_for_me) { _, _ ->
.setPositiveButton(R.string.CallLogFragment__delete) { _, _ ->
performDeletion(1, viewModel.stageCallDeletion(call))
}
.show()

View File

@@ -6024,14 +6024,12 @@
<string name="CallLogFragment__filtered_by_missed">Filtered by missed</string>
<!-- Bottom bar option to select all call entries -->
<string name="CallLogFragment__select_all">Select all</string>
<!-- Bottom bar option to delete all selected call entries -->
<!-- Bottom bar option to delete all selected call entries and dialog action to confirm deletion -->
<string name="CallLogFragment__delete">Delete</string>
<plurals name="CallLogFragment__delete_d_calls">
<item quantity="one">Delete %1$d call?</item>
<item quantity="other">Delete %1$d calls?</item>
</plurals>
<!-- Positive action on multi-delete protection dialog -->
<string name="CallLogFragment__delete_for_me">Delete for me</string>
<!-- Snackbar label after deleting call logs -->
<plurals name="CallLogFragment__d_calls_deleted">
<item quantity="one">%1$d call deleted</item>