Fix #536
This commit is contained in:
@@ -141,7 +141,9 @@ fun DatabaseSettings() {
|
|||||||
text = "Import the database from the external storage",
|
text = "Import the database from the external storage",
|
||||||
onClick = {
|
onClick = {
|
||||||
try {
|
try {
|
||||||
restoreLauncher.launch(arrayOf("application/vnd.sqlite3"))
|
restoreLauncher.launch(
|
||||||
|
arrayOf("application/vnd.sqlite3", "application/octet-stream")
|
||||||
|
)
|
||||||
} catch (e: ActivityNotFoundException) {
|
} catch (e: ActivityNotFoundException) {
|
||||||
context.toast("Couldn't find an application to open documents")
|
context.toast("Couldn't find an application to open documents")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user