Skip to content

[Bug]: Inconsistent navigation when dismissing storage permission rationale via Back button #6815

@Kota-Jagadeesh

Description

@Kota-Jagadeesh

Summary

Currently in the media details screen while downloading media, if a user denies the storage permission, a popup appears with an option to go to the Settings. If the user decides not to go to settings and presses the back button, the popup does not dismiss; instead, the user is unable to return to the media details screen they were viewing. At this point, the only way to exit the state is to restart the app. The app should instead dismiss the popup and remain on the media details screen when the back button is pressed.

#6390 (comment)

Steps to reproduce

  • Open the app and select any media item to view its details.
  • Tap the Download icon at the top right.
  • When the system permission dialog appears, select Deny.
  • When the app's "Permission Required" popup appears (the one with the "Settings" button), press the device's Back button.

Expected behaviour

The "Permission Required" popup should dismiss, and we should remain on the Media Details screen for the image we were viewing.

Actual behaviour

but instead the popup stays active, preventing us from returning to the image details.

Device name

Redmi Note 13 Pro

Android version

16

Commons app version

ProDebug

Device logs

No response

Screenshots

#6390 (comment)

Would you like to work on the issue?

Yes

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions