use the new way of launching activity intents

This commit is contained in:
tibbi 2021-04-14 20:39:34 +02:00
parent d7e6ed3b8f
commit 97f9d6707f
2 changed files with 2 additions and 6 deletions

View File

@ -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'

View File

@ -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() {