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:
@@ -61,6 +61,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:52e88a4bfb'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:502e50889e'
|
||||||
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
||||||
}
|
}
|
||||||
|
@@ -157,13 +157,13 @@ class RecentsHelper(private val context: Context) {
|
|||||||
val recentCall = RecentCall(id, number, name, photoUri, startTS, duration, type, neighbourIDs, simID, specificNumber, specificType)
|
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 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)
|
recentCalls.add(recentCall)
|
||||||
} else {
|
} else {
|
||||||
recentCalls.lastOrNull()?.neighbourIDs?.add(id)
|
recentCalls.lastOrNull()?.neighbourIDs?.add(id)
|
||||||
}
|
}
|
||||||
|
|
||||||
previousRecentCallFrom = "$number$name"
|
previousRecentCallFrom = "$number$name$simID"
|
||||||
} while (cursor.moveToNext())
|
} while (cursor.moveToNext())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user