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()) }