From 97f9d6707f1604bccb1f1f4697b92e59d53eee88 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 14 Apr 2021 20:39:34 +0200 Subject: [PATCH] use the new way of launching activity intents --- app/build.gradle | 2 +- .../calendar/pro/activities/EventActivity.kt | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d86b0fcdb..1510c2774 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,7 +63,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:5cec51606a' + implementation 'com.github.SimpleMobileTools:Simple-Commons:9e7ab2f67d' implementation 'joda-time:joda-time:2.10.3' implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index aec6ee8a2..3aaa0c31a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -1240,11 +1240,7 @@ class EventActivity : SimpleActivity() { } val intent = Intent(Intent.ACTION_VIEW, uri) - if (intent.resolveActivity(packageManager) != null) { - startActivity(intent) - } else { - toast(R.string.no_app_found) - } + launchActivityIntent(intent) } private fun setupStartDate() {