Skip to content

Camera import: Handle permission revocation gracefully #7

Description

@sethusrinivasan

Problem

If user grants camera permission, then revokes it in system settings, and taps 'Take Photo' again, a SecurityException can occur.

Fix Applied

Wrapped cameraLauncher.launch() in try-catch. But the UX should also show a message explaining why camera isn't working.

TODO

  • Show a Snackbar/Toast when camera permission is missing
  • Offer a button to open app settings for re-granting

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Kiro_GeneratedIssue generated during Kiro-assisted development

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions