Skip to content

Commit

Permalink
Fix database import
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkourlas committed Jun 28, 2024
1 parent 9409d73 commit e73d9a5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ class DatabasePreferencesFragment : PreferenceFragmentCompat() {
try {
importActivityResultLauncher.launch(
arrayOf(
SQLITE_MIME_TYPE
SQLITE_MIME_TYPE,
OCTET_STREAM_MIME_TYPE
)
)
} catch (_: ActivityNotFoundException) {
Expand Down Expand Up @@ -317,6 +318,7 @@ class DatabasePreferencesFragment : PreferenceFragmentCompat() {
}

companion object {
private const val SQLITE_MIME_TYPE = "application/vnd.sqlite3"
private const val SQLITE_MIME_TYPE = "application/x-sqlite3"
private const val OCTET_STREAM_MIME_TYPE = "application/octet-stream"
}
}

0 comments on commit e73d9a5

Please sign in to comment.