From a9b8df335d8a5193490b660fe50ddfb8d05442be Mon Sep 17 00:00:00 2001 From: Adolfo Santiago Date: Sat, 16 Mar 2024 17:49:52 +0100 Subject: [PATCH] Hotfix with flags permissions in the Intent --- .../src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/husky/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt b/husky/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt index e19e9a42..4adb5125 100644 --- a/husky/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt +++ b/husky/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt @@ -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",