From f949086195a30746f5de12afbb53203e0bd6ff77 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 7 Feb 2022 10:27:30 +0100 Subject: [PATCH] take simID into consideration at call log grouping too --- app/build.gradle | 2 +- .../com/simplemobiletools/dialer/helpers/RecentsHelper.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a0f73395..7eadf99f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -61,6 +61,6 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:52e88a4bfb' + implementation 'com.github.SimpleMobileTools:Simple-Commons:502e50889e' implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61' } diff --git a/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/RecentsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/RecentsHelper.kt index cde7dcb0..24a3bf7f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/RecentsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/dialer/helpers/RecentsHelper.kt @@ -157,13 +157,13 @@ class RecentsHelper(private val context: Context) { val recentCall = RecentCall(id, number, name, photoUri, startTS, duration, type, neighbourIDs, simID, specificNumber, specificType) // if we have multiple missed calls from the same number, show it just once - if (!groupSubsequentCalls || "$number$name" != previousRecentCallFrom) { + if (!groupSubsequentCalls || "$number$name$simID" != previousRecentCallFrom) { recentCalls.add(recentCall) } else { recentCalls.lastOrNull()?.neighbourIDs?.add(id) } - previousRecentCallFrom = "$number$name" + previousRecentCallFrom = "$number$name$simID" } while (cursor.moveToNext()) }