mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
changes permission check
This commit is contained in:
parent
45f8b39ded
commit
09e1147360
@ -354,7 +354,7 @@ class OnlineLibraryFragment : BaseFragment(), FragmentActivityExtensions {
|
||||
) {
|
||||
super.onRequestPermissionsResult(requestCode, permissions, grantResults)
|
||||
if (requestCode == REQUEST_STORAGE_PERMISSION &&
|
||||
grantResults.isNotEmpty() &&
|
||||
permissions.isNotEmpty() &&
|
||||
permissions[0] == Manifest.permission.WRITE_EXTERNAL_STORAGE
|
||||
) {
|
||||
if (grantResults[0] != PERMISSION_GRANTED) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user