mifos-mobile
mifos-mobile copied to clipboard
BeneficiaryAddOptionsFragment - request permission problem
Summary:
- The
onRequestPermissionsResultmethod of BeneficiaryAddOptionsFragment is never called. WRITE_EXTERNAL_STORAGEis not required API level 19 onwards and because of this theManifest.permission.WRITE_EXTERNAL_STORAGEalways returns '-1' i.e Permission denied on devices above API level 19. Link
Steps to reproduce:
- Go to Beneficiaries
- Tap on Add floating action button
- Tap on Upload QR
- Observe that permission for writing to the external storage was denied (if running on device with API < 19) and
onRequestPermissionsResultwas not called.
Expected behaviour:
- For devices > API level 19, the
WRITE_EXTERNAL_STORAGEpermission is not needed to be asked because grantingREAD_EXTERNAL_STORAGEautomatically grants the write permission whenever needed. Since the minimum API supported is 16, this has to be handled separately for devices < 19 and > 19 API level - The
onRequestPermissionsResultmethod of BeneficiaryAddOptionsFragment should be called on requesting the permissions.
Device and Android version:
Xiaomi PocoF1 Android 10 Stock rom
Can i work on this issue?
@rutvik-panchal I am already working on this issue