Large tests: Make compatible with API 27

This commit is contained in:
2021-04-25 19:22:32 -05:00
parent b561dfe90d
commit 2728c311d8
6 changed files with 12 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ fun Activity.showMessage(msg: String) {
fun Activity.showSendFileScreen(archiveFilename: String) {
val file = File(archiveFilename)
val fileUri = FileProvider.getUriForFile(this, "org.isoron.uhabits", file)
this.startActivity(
this.startActivitySafely(
Intent().apply {
action = Intent.ACTION_SEND
type = "application/zip"