From d39b2196f5bd7b8f7a9840a1727ab73b73a43e6c Mon Sep 17 00:00:00 2001 From: TJ Dahunsi Date: Tue, 9 May 2023 12:57:30 +0100 Subject: [PATCH] Rename newsPendingIntent to createNewsPendingIntent --- .../nowinandroid/core/notifications/SystemTrayNotifier.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,