From ab736415cdd204b9f9ce337103326fa13f00a1bb Mon Sep 17 00:00:00 2001 From: Naveen Date: Wed, 29 Jun 2022 11:10:08 +0530 Subject: [PATCH] Use existing `getActivityToOpen` function --- .../com/simplemobiletools/calendar/pro/extensions/Context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt index 064839a0e..90fbe1b89 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/extensions/Context.kt @@ -342,7 +342,7 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content: private fun getFormattedEventTime(startTime: String, endTime: String) = if (startTime == endTime) startTime else "$startTime \u2013 $endTime" private fun getPendingIntent(context: Context, event: Event): PendingIntent { - val activityClass = if (event.isTask()) TaskActivity::class.java else EventActivity::class.java + val activityClass = getActivityToOpen(event.isTask()) val intent = Intent(context, activityClass) intent.putExtra(EVENT_ID, event.id) intent.putExtra(EVENT_OCCURRENCE_TS, event.startTS)