Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08946321 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Change backup path from qksms to message

parent 98830209
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ class BackupRepositoryImpl @Inject constructor(
    @Volatile private var stopFlag: Boolean = false

    override fun getDefaultBackupPath(): String {
        return "${Environment.getExternalStorageDirectory()}/QKSMS/Backups"
        return "${Environment.getExternalStorageDirectory()}/Message/Backups"
    }

    override fun getBackupDocumentTree(): DocumentFile? {
+3 −3
Original line number Diff line number Diff line
@@ -197,9 +197,9 @@ class MessageRepositoryImpl @Inject constructor(
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
            values.put(MediaStore.MediaColumns.IS_PENDING, 1)
            values.put(MediaStore.MediaColumns.RELATIVE_PATH, when {
                part.isImage() -> "${Environment.DIRECTORY_PICTURES}/QKSMS"
                part.isVideo() -> "${Environment.DIRECTORY_MOVIES}/QKSMS"
                else -> "${Environment.DIRECTORY_DOWNLOADS}/QKSMS"
                part.isImage() -> "${Environment.DIRECTORY_PICTURES}/Message"
                part.isVideo() -> "${Environment.DIRECTORY_MOVIES}/Message"
                else -> "${Environment.DIRECTORY_DOWNLOADS}/Message"
            })
        }