Rename newsPendingIntent to createNewsPendingIntent

tj/news-notifications
TJ Dahunsi 1 year ago
parent 6e6abd0326
commit d39b2196f5

@ -76,7 +76,7 @@ class SystemTrayNotifier @Inject constructor(
)
.setContentTitle(newsResource.title)
.setContentText(newsResource.content)
.setContentIntent(newsPendingIntent(newsResource))
.setContentIntent(createNewsPendingIntent(newsResource))
.setGroup(NEWS_NOTIFICATION_GROUP)
.setAutoCancel(true)
}
@ -157,7 +157,7 @@ private fun Context.ensureNotificationChannelExists() {
NotificationManagerCompat.from(this).createNotificationChannel(channel)
}
private fun Context.newsPendingIntent(
private fun Context.createNewsPendingIntent(
newsResource: NewsResource,
): PendingIntent? = PendingIntent.getActivity(
this,

Loading…
Cancel
Save