Use MediaStore for saving attachments to device

This commit is contained in:
Moez Bhatti
2023-01-02 16:43:18 -05:00
parent 53b2ac2bf8
commit b5cac5d87d
6 changed files with 54 additions and 31 deletions
@@ -18,6 +18,7 @@
*/
package com.moez.QKSMS.repository
import android.net.Uri
import com.moez.QKSMS.model.Attachment
import com.moez.QKSMS.model.Message
import com.moez.QKSMS.model.MmsPart
@@ -40,7 +41,7 @@ interface MessageRepository {
fun getPartsForConversation(threadId: Long): RealmResults<MmsPart>
fun savePart(id: Long): File?
fun savePart(id: Long): Uri?
/**
* Retrieves the list of messages which should be shown in the notification