diff --git a/Xamarin.Essentials/Browser/Browser.android.cs b/Xamarin.Essentials/Browser/Browser.android.cs index 70e794088..6e3a0bbdd 100644 --- a/Xamarin.Essentials/Browser/Browser.android.cs +++ b/Xamarin.Essentials/Browser/Browser.android.cs @@ -22,7 +22,9 @@ static Task PlatformOpenAsync(Uri uri, BrowserLaunchOptions options) var tabsBuilder = new CustomTabsIntent.Builder(); tabsBuilder.SetShowTitle(true); if (options.PreferredToolbarColor.HasValue) +#pragma warning disable CS0618 // Type or member is obsolete tabsBuilder.SetToolbarColor(options.PreferredToolbarColor.Value.ToInt()); +#pragma warning restore CS0618 // Type or member is obsolete if (options.TitleMode != BrowserTitleMode.Default) tabsBuilder.SetShowTitle(options.TitleMode == BrowserTitleMode.Show); diff --git a/Xamarin.Essentials/Xamarin.Essentials.csproj b/Xamarin.Essentials/Xamarin.Essentials.csproj index 4d7b8c1d1..185960f9e 100644 --- a/Xamarin.Essentials/Xamarin.Essentials.csproj +++ b/Xamarin.Essentials/Xamarin.Essentials.csproj @@ -87,7 +87,7 @@ - + @@ -125,4 +125,4 @@ - \ No newline at end of file +