Skip to content

Commit

Permalink
Hotfix with flags permissions in the Intent
Browse files Browse the repository at this point in the history
  • Loading branch information
captainepoch committed Mar 16, 2024
1 parent c793ef3 commit a9b8df3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,12 @@ class ViewMediaActivity : BaseActivity(), ViewImageFragment.PhotoActionsListener
),
"image/png"
)
flags = flags or Intent.FLAG_GRANT_READ_URI_PERMISSION
}
)
} catch (e: ActivityNotFoundException) {
Timber.e("Not app available: ${e.message}", e)

Toast.makeText(
this,
"No app available to open images",
Expand Down

0 comments on commit a9b8df3

Please sign in to comment.