A fully functional Android app built entirely with Kotlin and Jetpack Compose
Add ColorInt annotation
Caren1280565466f3
diff --git a/core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsFeed.kt b/core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsFeed.ktindex 28c7217ff..55d84af2f 100644--- a/core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsFeed.kt+++ b/core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsFeed.kt@@ -18,6 +18,7 @@ package com.google.samples.apps.nowinandroid.core.uiimport android.content.Contextimport android.net.Uri+import androidx.annotation.ColorIntimport androidx.browser.customtabs.CustomTabColorSchemeParamsimport androidx.browser.customtabs.CustomTabsIntentimport androidx.compose.foundation.lazy.LazyListScope@@ -73,7 +74,7 @@ fun LazyGridScope.newsFeed(}}-fun launchCustomChromeTab(context: Context, uri: Uri, toolbarColor: Int) {+fun launchCustomChromeTab(context: Context, uri: Uri, @ColorInt toolbarColor: Int) {val customTabBarColor = CustomTabColorSchemeParams.Builder().setToolbarColor(toolbarColor).build()val customTabsIntent = CustomTabsIntent.Builder()