No Issue - Update to AC 41.0.20200505190119
parent
c0c41dfd74
commit
d72e455c0d
|
@ -8,6 +8,7 @@ import android.content.Context
|
|||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.util.AttributeSet
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import androidx.annotation.CallSuper
|
||||
import androidx.annotation.IdRes
|
||||
|
@ -77,6 +78,7 @@ import org.mozilla.fenix.utils.RunWhenReadyQueue
|
|||
import mozilla.components.concept.tabstray.TabsTray
|
||||
import mozilla.components.browser.tabstray.TabsAdapter
|
||||
import mozilla.components.browser.tabstray.BrowserTabsTray
|
||||
import mozilla.components.browser.tabstray.DefaultTabViewHolder
|
||||
import org.mozilla.fenix.tabtray.TabTrayFragmentDirections
|
||||
|
||||
/**
|
||||
|
@ -218,7 +220,15 @@ open class HomeActivity : LocaleAwareAppCompatActivity() {
|
|||
}.asView()
|
||||
TabsTray::class.java.name -> {
|
||||
val layout = LinearLayoutManager(context)
|
||||
val adapter = TabsAdapter(layoutId = R.layout.tab_tray_item)
|
||||
val adapter = TabsAdapter { parentView, tabsTray ->
|
||||
DefaultTabViewHolder(
|
||||
LayoutInflater.from(parentView.context).inflate(
|
||||
R.layout.tab_tray_item,
|
||||
parentView,
|
||||
false),
|
||||
tabsTray
|
||||
)
|
||||
}
|
||||
BrowserTabsTray(context, attrs, tabsAdapter = adapter, layout = layout)
|
||||
}
|
||||
else -> super.onCreateView(parent, name, context, attrs)
|
||||
|
|
|
@ -10,8 +10,8 @@ import androidx.lifecycle.LifecycleObserver
|
|||
import androidx.lifecycle.OnLifecycleEvent
|
||||
import androidx.navigation.NavController
|
||||
import androidx.navigation.NavDestination
|
||||
import mozilla.components.lib.crash.Breadcrumb
|
||||
import mozilla.components.lib.crash.CrashReporter
|
||||
import mozilla.components.support.base.crash.Breadcrumb
|
||||
|
||||
/**
|
||||
* Records breadcrumbs when the fragment changes.
|
||||
|
|
|
@ -122,7 +122,7 @@ internal class OneTimeMessageDeliveryObserver(
|
|||
authType: AuthType
|
||||
) {
|
||||
lazyAccount.value.withConstellation {
|
||||
it.processRawEventAsync(String(message))
|
||||
processRawEventAsync(String(message))
|
||||
}
|
||||
|
||||
MainScope().launch {
|
||||
|
|
|
@ -9,6 +9,7 @@ import androidx.navigation.NavDestination
|
|||
import mozilla.components.lib.crash.Crash
|
||||
import mozilla.components.lib.crash.CrashReporter
|
||||
import mozilla.components.lib.crash.service.CrashReporterService
|
||||
import mozilla.components.support.base.crash.Breadcrumb
|
||||
import mozilla.components.support.test.any
|
||||
import mozilla.components.support.test.mock
|
||||
import org.junit.Test
|
||||
|
@ -19,7 +20,7 @@ internal class BreadcrumbRecorderTest {
|
|||
@Test
|
||||
fun `ensure crash reporter recordCrashBreadcrumb is called`() {
|
||||
val service = object : CrashReporterService {
|
||||
override fun report(throwable: Throwable): String? = ""
|
||||
override fun report(throwable: Throwable, breadcrumbs: ArrayList<Breadcrumb>): String? = ""
|
||||
override fun report(crash: Crash.NativeCodeCrash): String? = ""
|
||||
override fun report(crash: Crash.UncaughtExceptionCrash): String? = ""
|
||||
}
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
object AndroidComponents {
|
||||
const val VERSION = "40.0.20200504130127"
|
||||
const val VERSION = "41.0.20200505190119"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue