Close Cursor in MessageListLoader
@@ -48,12 +48,14 @@ class MessageListLoader(
uniqueIdColumn = MLFProjectionInfo.ID_COLUMN
}
- return messageListExtractor.extractMessageList(
+ return cursor.use {
+ messageListExtractor.extractMessageList(
cursor,
uniqueIdColumn,
threadCountIncluded = config.showingThreadedList
)
}
+ }
private fun loadMessageListForAccount(account: Account, config: MessageListConfig): Cursor? {
val accountUuid = account.uuid
