feat: use models during export, try to update conversation date during import
This commit is contained in:
parent
e10a410788
commit
d78776e288
11 changed files with 216 additions and 149 deletions
|
|
@ -260,7 +260,7 @@ fun Context.getConversationIds(): List<Long> {
|
|||
val projection = arrayOf(Threads._ID)
|
||||
val selection = "${Threads.MESSAGE_COUNT} > ?"
|
||||
val selectionArgs = arrayOf("0")
|
||||
val sortOrder = "${Threads.DATE} DESC"
|
||||
val sortOrder = "${Threads.DATE} ASC"
|
||||
val conversationIds = mutableListOf<Long>()
|
||||
queryCursor(uri, projection, selection, selectionArgs, sortOrder, true) { cursor ->
|
||||
val id = cursor.getLongValue(Threads._ID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue