From f3995b8c46e19af5b8af8b2d87d4977f543630f4 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Sat, 29 Oct 2022 08:27:41 +0200 Subject: [PATCH] Fix #536 --- .../vfsfitvnm/vimusic/ui/screens/settings/DatabaseSettings.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/DatabaseSettings.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/DatabaseSettings.kt index e0634a4..02560f5 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/DatabaseSettings.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/DatabaseSettings.kt @@ -141,7 +141,9 @@ fun DatabaseSettings() { text = "Import the database from the external storage", onClick = { try { - restoreLauncher.launch(arrayOf("application/vnd.sqlite3")) + restoreLauncher.launch( + arrayOf("application/vnd.sqlite3", "application/octet-stream") + ) } catch (e: ActivityNotFoundException) { context.toast("Couldn't find an application to open documents") }