I have two different functions for takeScreenshot and saveAsPDF, both of them requires WRITE_EXTERNAL_STORAGE permission. But how can I create a switch case in onRequestPermissionsResult
for same permission in the same Activity because requestCode
is same in both the cases.