Use existing `getActivityToOpen` function
This commit is contained in:
parent
e6d20b93d5
commit
ab736415cd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue