No issue - update to A-C 50
parent
9092edaa3e
commit
31bfba3bd8
|
@ -10,6 +10,7 @@ import mozilla.components.browser.session.SessionManager
|
||||||
import mozilla.components.feature.intent.IntentProcessor
|
import mozilla.components.feature.intent.IntentProcessor
|
||||||
import mozilla.components.feature.search.SearchUseCases
|
import mozilla.components.feature.search.SearchUseCases
|
||||||
import mozilla.components.feature.session.SessionUseCases
|
import mozilla.components.feature.session.SessionUseCases
|
||||||
|
import org.mozilla.fenix.ext.components
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Component group for miscellaneous components.
|
* Component group for miscellaneous components.
|
||||||
|
@ -33,6 +34,6 @@ class Utilities(
|
||||||
}
|
}
|
||||||
|
|
||||||
val icons by lazy {
|
val icons by lazy {
|
||||||
BrowserIcons(context)
|
BrowserIcons(context, context.components.core.client)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ import mozilla.components.browser.menu.BrowserMenu
|
||||||
import mozilla.components.concept.storage.BookmarkNode
|
import mozilla.components.concept.storage.BookmarkNode
|
||||||
import mozilla.components.concept.storage.BookmarkNodeType
|
import mozilla.components.concept.storage.BookmarkNodeType
|
||||||
import org.mozilla.fenix.R
|
import org.mozilla.fenix.R
|
||||||
|
import org.mozilla.fenix.ext.components
|
||||||
import kotlin.coroutines.CoroutineContext
|
import kotlin.coroutines.CoroutineContext
|
||||||
|
|
||||||
class BookmarkAdapter(val actionEmitter: Observer<BookmarkAction>) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
|
class BookmarkAdapter(val actionEmitter: Observer<BookmarkAction>) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
|
||||||
|
@ -164,7 +165,7 @@ class BookmarkAdapter(val actionEmitter: Observer<BookmarkAction>) : RecyclerVie
|
||||||
|
|
||||||
if (item.url?.startsWith("http") == true) {
|
if (item.url?.startsWith("http") == true) {
|
||||||
launch(Dispatchers.IO) {
|
launch(Dispatchers.IO) {
|
||||||
val bitmap = BrowserIcons(bookmark_favicon.context)
|
val bitmap = BrowserIcons(bookmark_favicon.context, bookmark_layout.context.components.core.client)
|
||||||
.loadIcon(IconRequest(item.url!!)).await().bitmap
|
.loadIcon(IconRequest(item.url!!)).await().bitmap
|
||||||
launch(Dispatchers.Main) {
|
launch(Dispatchers.Main) {
|
||||||
bookmark_favicon.setImageBitmap(bitmap)
|
bookmark_favicon.setImageBitmap(bitmap)
|
||||||
|
|
|
@ -22,7 +22,7 @@ private object Versions {
|
||||||
const val androidx_navigation = "2.1.0-alpha01"
|
const val androidx_navigation = "2.1.0-alpha01"
|
||||||
|
|
||||||
const val appservices_gradle_plugin = "0.4.2"
|
const val appservices_gradle_plugin = "0.4.2"
|
||||||
const val mozilla_android_components = "0.49.0-SNAPSHOT"
|
const val mozilla_android_components = "0.50.0-SNAPSHOT"
|
||||||
const val mozilla_appservices = "0.23.0"
|
const val mozilla_appservices = "0.23.0"
|
||||||
|
|
||||||
const val test_tools = "1.0.2"
|
const val test_tools = "1.0.2"
|
||||||
|
|
Loading…
Reference in New Issue