take simID into consideration at call log grouping too

This commit is contained in:
tibbi
2022-02-07 10:27:30 +01:00
parent 7af5c8eb01
commit f949086195
2 changed files with 3 additions and 3 deletions

View File

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