From 1280565466f35617f56bfa93fbaac34df6ab9e0e Mon Sep 17 00:00:00 2001 From: Caren Date: Mon, 5 Dec 2022 17:05:19 -0800 Subject: [PATCH] Add ColorInt annotation Change-Id: If6ea8e4c3a09c6de932797ddcb64bbfff1e52ede --- .../com/google/samples/apps/nowinandroid/core/ui/NewsFeed.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.kt index 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.ui import android.content.Context import android.net.Uri +import androidx.annotation.ColorInt import androidx.browser.customtabs.CustomTabColorSchemeParams import androidx.browser.customtabs.CustomTabsIntent import 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()