Explicitely set tasks package name for tasks intent
This commit is contained in:
parent
4dc5f2e269
commit
b36b8e5555
@ -38,7 +38,7 @@ data class TasksCalendarEvent(
|
|||||||
|
|
||||||
override fun launch(context: Context, options: Bundle?): Boolean {
|
override fun launch(context: Context, options: Bundle?): Boolean {
|
||||||
val uri = ContentUris.withAppendedId("content://org.tasks/tasks".toUri(), id)
|
val uri = ContentUris.withAppendedId("content://org.tasks/tasks".toUri(), id)
|
||||||
val intent = Intent(Intent.ACTION_VIEW).setData(uri).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
val intent = Intent(Intent.ACTION_VIEW).setData(uri).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK).setPackage("org.tasks")
|
||||||
|
|
||||||
return context.tryStartActivity(intent, options)
|
return context.tryStartActivity(intent, options)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user