Merge pull request #687 from fatihergin/fix/ISSUE-568-cannot-delete-individual-call-log-entry

refresh recent call history on individual call history item deletion too
This commit is contained in:
Tibor Kaputa 2023-09-07 21:36:49 +02:00 committed by GitHub
commit 9855efcf66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,8 +245,8 @@ class RecentCallsAdapter(
RecentsHelper(activity).removeRecentCalls(idsToRemove) {
recentCalls.removeAll(callsToRemove)
activity.runOnUiThread {
refreshItemsListener?.refreshItems()
if (recentCalls.isEmpty()) {
refreshItemsListener?.refreshItems()
finishActMode()
} else {
removeSelectedItems(positions)