File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/main/java/de/raphaelebner/roomdatabasebackup/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -716,7 +716,7 @@ class RoomBackup(var context: Context) : FragmentActivity() {
716716
717717 }
718718 PROCESS_RESTORE -> {
719- openBackupfileChooser.launch(arrayOf(" */* " ))
719+ openBackupfileChooser.launch(arrayOf(" application/octet-stream " ))
720720 }
721721 }
722722 }
@@ -740,7 +740,7 @@ class RoomBackup(var context: Context) : FragmentActivity() {
740740 /* *
741741 * Opens the [ActivityResultContracts.CreateDocument] and prompts the user to select a path for creating the new backup file
742742 */
743- private val openBackupfileCreator = (context as ComponentActivity ).registerForActivityResult(CreateDocument (" todo/todo " )) { result ->
743+ private val openBackupfileCreator = (context as ComponentActivity ).registerForActivityResult(CreateDocument (" application/octet-stream " )) { result ->
744744 if (result != null ) {
745745 val out = context.contentResolver.openOutputStream(result)!!
746746 doBackup(out )
You can’t perform that action at this time.
0 commit comments