From 9562f7707dc7dd517ad6aa420dc893e3682af5bd Mon Sep 17 00:00:00 2001 From: TJ Dahunsi Date: Sat, 6 May 2023 11:05:00 +0100 Subject: [PATCH] Route notification deep link through for you screen, with spotless fixes --- .../core/data/repository/OfflineFirstNewsRepository.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt b/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt index d9417d69b..bd6ed11b4 100644 --- a/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt +++ b/core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt @@ -129,9 +129,11 @@ class OfflineFirstNewsRepository @Inject constructor( .first() .map(PopulatedNewsResource::asExternalModel) - if (addedNewsResources.isNotEmpty()) notifier.postNewsNotifications( - newsResources = addedNewsResources, - ) + if (addedNewsResources.isNotEmpty()) { + notifier.postNewsNotifications( + newsResources = addedNewsResources, + ) + } } }, )