No issue: Update Android Components version to 74.0.20210318143143

Replaces deprecated method setToolbarColor(Int) in CustomTabsIntent.Builder.
upstream-sync
mcarare 3 years ago committed by Christian Sadilek
parent 10af28c977
commit f9a52af98d

@ -6,6 +6,7 @@ package org.mozilla.fenix.settings
import android.content.Context
import android.content.Intent
import androidx.browser.customtabs.CustomTabColorSchemeParams
import androidx.browser.customtabs.CustomTabsIntent
import androidx.core.net.toUri
import mozilla.components.support.ktx.android.content.appVersionName
@ -94,7 +95,9 @@ object SupportUtils {
fun createCustomTabIntent(context: Context, url: String): Intent = CustomTabsIntent.Builder()
.setInstantAppsEnabled(false)
.setToolbarColor(context.getColorFromAttr(R.attr.foundation))
.setDefaultColorSchemeParams(
CustomTabColorSchemeParams.Builder().setToolbarColor(context.getColorFromAttr(R.attr.foundation)).build()
)
.build()
.intent
.setData(url.toUri())

@ -3,5 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
object AndroidComponents {
const val VERSION = "74.0.20210316190202"
const val VERSION = "74.0.20210318143143"
}

Loading…
Cancel
Save