mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-21 03:02:59 -04:00
Merge pull request #1671 from kiwix/feature/macgills/1670-handle-content-uris
Feature/macgills/1670 handle content uris
This commit is contained in:
commit
f9c5f8998b
@ -167,8 +167,9 @@ class KiwixMainActivity : CoreMainActivity() {
|
||||
|
||||
override fun onNewIntent(intent: Intent?) {
|
||||
super.onNewIntent(intent)
|
||||
if (intent?.data != null) {
|
||||
openZimFile(intent.data.toFile())
|
||||
intent?.data?.let {
|
||||
if ("file" == it.scheme) openZimFile(it.toFile())
|
||||
else toast(R.string.cannot_open_file)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,4 +3,5 @@
|
||||
<resources>
|
||||
<string name="file_system_does_not_support_4gb">Your file system doesn’t support files over 4GB</string>
|
||||
<string name="detecting_file_system">Detecting if file system can create 4GB files</string>
|
||||
<string name="cannot_open_file">Failed to open file\nPlease try looking for this file in the Device Tab of your Library</string>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user