1
0
Fork 0

Fix #1732: Fix crashes opening bookmarks

master
Colin Lee 2019-04-18 12:52:42 -05:00
parent 8af7ddd5d7
commit c432cf7b40
2 changed files with 3 additions and 9 deletions

View File

@ -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)

View File

@ -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"