mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Fixed the scenario where, if the application does not have the MANAGE_EXTERNAL_STORAGE permission and the user tries to open a ZIM file from the file manager, the app now prompts for the required permission instead of showing an error.
This commit is contained in:
parent
daeec25ffd
commit
65d00fe616
@ -437,7 +437,9 @@ class LocalLibraryFragment : BaseFragment(), CopyMoveFileHandler.FileCopyMoveCal
|
||||
)
|
||||
} else {
|
||||
zimFileUri = uri
|
||||
if (requestExternalStorageWritePermission()) {
|
||||
if (!requireActivity().isManageExternalStoragePermissionGranted(sharedPreferenceUtil)) {
|
||||
showManageExternalStoragePermissionDialog()
|
||||
} else if (requestExternalStorageWritePermission()) {
|
||||
getZimFileFromUri(uri)?.let(::navigateToReaderFragment)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user