A fully functional Android app built entirely with Kotlin and Jetpack Compose
Apply suggested changes to inline comment
Amaury Medeiros87c27f6b82e2
diff --git a/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt b/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.ktindex 012b98608..f71be33e9 100644--- a/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt+++ b/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt@@ -407,7 +407,8 @@ fun TopicIcon(@Composable@OptIn(ExperimentalPermissionsApi::class)private fun NotificationPermissionEffect() {- // Permissions should be called from in an Activity Context, which is not present in previews+ // Permissions should be called from in an Activity Context, which is not present+ // in previewsif (LocalInspectionMode.current) returnif (VERSION.SDK_INT < VERSION_CODES.TIRAMISU) returnval notificationsPermissionState = rememberPermissionState(