diff --git a/core/notifications/src/main/java/com/google/samples/apps/nowinandroid/core/notifications/SystemTrayNotifier.kt b/core/notifications/src/main/java/com/google/samples/apps/nowinandroid/core/notifications/SystemTrayNotifier.kt index b7fcc9b26..50f162a2f 100644 --- a/core/notifications/src/main/java/com/google/samples/apps/nowinandroid/core/notifications/SystemTrayNotifier.kt +++ b/core/notifications/src/main/java/com/google/samples/apps/nowinandroid/core/notifications/SystemTrayNotifier.kt @@ -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,