feat(android): use Android ShareSheet for sharing logs (#3756)

Fixes #3545 


![sharesheet](https://github.com/firezone/firezone/assets/5115126/dce8cbea-14c4-4feb-8cda-7ed4c0de20b5)
This commit is contained in:
Jason Elie Bou Kheir
2024-02-26 09:55:29 -08:00
committed by GitHub
parent 639440520e
commit c6ff8858fb

View File

@@ -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)
}
}