Fix #1732: Fix crashes opening bookmarks
parent
8af7ddd5d7
commit
c432cf7b40
|
@ -5,12 +5,6 @@
|
|||
package org.mozilla.fenix.ext
|
||||
|
||||
import android.content.Context
|
||||
import android.util.TypedValue
|
||||
import org.mozilla.fenix.DefaultThemeManager
|
||||
|
||||
fun Int.getColorFromAttr(context: Context): Int {
|
||||
val typedValue = TypedValue()
|
||||
val typedArray = context.obtainStyledAttributes(typedValue.data, intArrayOf(this))
|
||||
val color = typedArray.getColor(0, 0)
|
||||
typedArray.recycle()
|
||||
return color
|
||||
}
|
||||
fun Int.getColorFromAttr(context: Context): Int = DefaultThemeManager.resolveAttribute(this, context)
|
||||
|
|
|
@ -26,7 +26,7 @@ private object Versions {
|
|||
|
||||
const val appservices_gradle_plugin = "0.4.4"
|
||||
const val mozilla_android_components = "0.51.0-SNAPSHOT"
|
||||
const val mozilla_appservices = "0.25.2"
|
||||
const val mozilla_appservices = "0.26.0"
|
||||
|
||||
const val autodispose = "1.1.0"
|
||||
const val adjust = "4.11.4"
|
||||
|
|
Loading…
Reference in New Issue