priya-zha / Software-Engineering-Project

0 stars 2 forks source link

On permission denial, the "Permission Denied" activity is called, but the option to redo the permission was broken. #6

Open sijorejigeorge opened 1 year ago

sijorejigeorge commented 1 year ago

Steps to Reproduce:

  1. Deny permission.
  2. Observe that the "Permission Denied" activity is called.
  3. Attempt to redo the permission.

Expected Behavior:

The option to retry permission should function correctly and allow the user to grant the required permission.

Actual Behavior:

The option to retry permission was broken and it resulted in a white screen.

Before Fixing the bug:

https://github.com/priya-zha/Software-Engineering-Project/assets/148432068/783f33a1-efe0-417f-a828-ff4d538ac706

After Fixing the bug:

https://github.com/priya-zha/Software-Engineering-Project/assets/148432068/8b08ff33-38ef-4df0-b139-41e572a72584

sijorejigeorge commented 1 year ago

The issue was resolved by enabling users to access the phone's settings screen from within the app, providing them with an option to grant the necessary permission.

https://github.com/priya-zha/Software-Engineering-Project/blob/70af99f417241357b7f5942bd39e1c2a91e41ec8/app/src/main/java/com/example/se/PermissionDenied.java#L32C3-L82C6