mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
Sort the call history before restoring, so that it is saved in the right order
This commit is contained in:
@@ -226,7 +226,9 @@ class RecentsHelper(private val context: Context) {
|
||||
activity.handlePermission(PERMISSION_WRITE_CALL_LOG) {
|
||||
if (it) {
|
||||
ensureBackgroundThread {
|
||||
val values = objects.map {
|
||||
val values = objects
|
||||
.sortedBy { it.startTS }
|
||||
.map {
|
||||
ContentValues().apply {
|
||||
put(Calls.NUMBER, it.phoneNumber)
|
||||
put(Calls.TYPE, it.type)
|
||||
|
Reference in New Issue
Block a user