mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
feat(android): use Android ShareSheet for sharing logs (#3756)
Fixes #3545 
This commit is contained in:
committed by
GitHub
parent
639440520e
commit
c6ff8858fb
@@ -116,7 +116,7 @@ internal class SettingsViewModel
|
||||
|
||||
zipFolder(sourceFolder, zipFile).collect()
|
||||
|
||||
val shareIntent =
|
||||
val sendIntent =
|
||||
Intent(Intent.ACTION_SEND).apply {
|
||||
putExtra(
|
||||
Intent.EXTRA_SUBJECT,
|
||||
@@ -140,6 +140,7 @@ internal class SettingsViewModel
|
||||
flags = Intent.FLAG_GRANT_READ_URI_PERMISSION
|
||||
data = fileURI
|
||||
}
|
||||
val shareIntent = Intent.createChooser(sendIntent, null)
|
||||
context.startActivity(shareIntent)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user