Merge pull request #3748 from kiwix/Fix#3746

Fixed: ZIM file is not deleting from LocalLibraryFragment if we do not have the storage permission in non-playstore variant, which is fine but it should ask permission.
This commit is contained in:
Kelson 2024-03-14 07:24:01 +01:00 committed by GitHub
commit 341ce65f7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,7 +152,13 @@ class LocalLibraryFragment : BaseFragment() {
offerAction(RequestNavigateTo(it))
}
},
{ offerAction(RequestMultiSelection(it)) },
{
if (!requireActivity().isManageExternalStoragePermissionGranted(sharedPreferenceUtil)) {
showManageExternalStoragePermissionDialog()
} else {
offerAction(RequestMultiSelection(it))
}
},
{ offerAction(RequestSelect(it)) }
)
}