Change backup to .txt to fix issues on some devices

This commit is contained in:
reduplicated 2022-08-05 15:47:21 +02:00
parent 718199ee39
commit cce8cef6d0

View file

@ -89,7 +89,9 @@ object BackupUtils {
val newFile = ContentValues().apply {
put(MediaStore.MediaColumns.DISPLAY_NAME, displayName)
put(MediaStore.MediaColumns.TITLE, displayName)
put(MediaStore.MediaColumns.MIME_TYPE, "application/json")
// While it a json file we store as txt because not
// all file managers support mimetype json
put(MediaStore.MediaColumns.MIME_TYPE, "text/plain")
//put(MediaStore.MediaColumns.RELATIVE_PATH, folder)
}