Skip to content

Commit

Permalink
fix: Forward Uri read permission from LaunchActivity to NewTransferAc…
Browse files Browse the repository at this point in the history
…tivity

This will avoid the SecurityExceptions we're getting
upon importing files that takes place after
the LaunchActivity is destroyed following
our call to finish().
  • Loading branch information
LouisCAD committed Feb 24, 2025
1 parent 5102882 commit b5dbefb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class LaunchActivity : ComponentActivity() {
setClass(this@LaunchActivity, NewTransferActivity::class.java)
// We need NewMessageActivity to have its standard launchMode in the Manifest
// in order for FLAG_ACTIVITY_CLEAR_TOP to kill and recreate NewMessageActivity
setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_GRANT_READ_URI_PERMISSION)
}
}

Expand Down

0 comments on commit b5dbefb

Please sign in to comment.