in app/src/main/java/org/apache/fineract/ui/online/customers/customerprofile/editcustomerprofilebottomsheet/EditCustomerProfileBottomSheet.java [256:279]
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
@NonNull int[] grantResults) {
switch (requestCode) {
case ConstantKeys.PERMISSION_REQUEST_ALL:
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {
openCamera();
} else {
String permissionDeniedMessage = getString(R.string.permission_denied_write) +
getString(R.string.permission_denied_camera);
Toaster.show(rootView, permissionDeniedMessage);
}
break;
case ConstantKeys.PERMISSION_REQUEST_READ_EXTERNAL_STORAGE:
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {
viewGallery();
} else {
Toaster.show(rootView, getString(R.string.permission_denied_read));
}
break;
}
}