1
0
Fork 0

No issue: Use GeckoView fetch implementation for A-S libs (megazord)

master
Christian Sadilek 2019-04-22 16:37:53 -04:00 committed by Colin Lee
parent b431e57dce
commit d8f06097ca
1 changed files with 1 additions and 2 deletions

View File

@ -164,8 +164,7 @@ open class FenixApplication : Application() {
return try {
val megazordClass = Class.forName("mozilla.appservices.FenixMegazord")
val megazordInitMethod = megazordClass.getDeclaredMethod("init", Lazy::class.java)
// https://github.com/mozilla-mobile/android-components/issues/2715
val client: Lazy<Client> = lazy { HttpURLConnectionClient() }
val client: Lazy<Client> = lazy { components.core.client }
megazordInitMethod.invoke(megazordClass, client)
true
} catch (e: ClassNotFoundException) {