mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-09 08:28:39 +01:00
use the new way of launching activity intents
This commit is contained in:
parent
d7e6ed3b8f
commit
97f9d6707f
@ -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'
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user