Skip to content

Commit b5dbefb

Browse files
committed
fix: Forward Uri read permission from LaunchActivity to NewTransferActivity
This will avoid the SecurityExceptions we're getting upon importing files that takes place after the LaunchActivity is destroyed following our call to finish().
1 parent 5102882 commit b5dbefb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/infomaniak/swisstransfer/ui/LaunchActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class LaunchActivity : ComponentActivity() {
8888
setClass(this@LaunchActivity, NewTransferActivity::class.java)
8989
// We need NewMessageActivity to have its standard launchMode in the Manifest
9090
// in order for FLAG_ACTIVITY_CLEAR_TOP to kill and recreate NewMessageActivity
91-
setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
91+
setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_GRANT_READ_URI_PERMISSION)
9292
}
9393
}
9494

0 commit comments

Comments
 (0)