mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
take simID into consideration at call log grouping too
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user