1
0
Fork 0

No Issue - Update to AC 41.0.20200505190119

master
Jeff Boek 2020-05-05 13:45:06 -07:00 committed by Christian Sadilek
parent c0c41dfd74
commit d72e455c0d
5 changed files with 16 additions and 5 deletions

View File

@ -8,6 +8,7 @@ import android.content.Context
import android.content.Intent import android.content.Intent
import android.os.Bundle import android.os.Bundle
import android.util.AttributeSet import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View import android.view.View
import androidx.annotation.CallSuper import androidx.annotation.CallSuper
import androidx.annotation.IdRes import androidx.annotation.IdRes
@ -77,6 +78,7 @@ import org.mozilla.fenix.utils.RunWhenReadyQueue
import mozilla.components.concept.tabstray.TabsTray import mozilla.components.concept.tabstray.TabsTray
import mozilla.components.browser.tabstray.TabsAdapter import mozilla.components.browser.tabstray.TabsAdapter
import mozilla.components.browser.tabstray.BrowserTabsTray import mozilla.components.browser.tabstray.BrowserTabsTray
import mozilla.components.browser.tabstray.DefaultTabViewHolder
import org.mozilla.fenix.tabtray.TabTrayFragmentDirections import org.mozilla.fenix.tabtray.TabTrayFragmentDirections
/** /**
@ -218,7 +220,15 @@ open class HomeActivity : LocaleAwareAppCompatActivity() {
}.asView() }.asView()
TabsTray::class.java.name -> { TabsTray::class.java.name -> {
val layout = LinearLayoutManager(context) 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) BrowserTabsTray(context, attrs, tabsAdapter = adapter, layout = layout)
} }
else -> super.onCreateView(parent, name, context, attrs) else -> super.onCreateView(parent, name, context, attrs)

View File

@ -10,8 +10,8 @@ import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent import androidx.lifecycle.OnLifecycleEvent
import androidx.navigation.NavController import androidx.navigation.NavController
import androidx.navigation.NavDestination import androidx.navigation.NavDestination
import mozilla.components.lib.crash.Breadcrumb
import mozilla.components.lib.crash.CrashReporter import mozilla.components.lib.crash.CrashReporter
import mozilla.components.support.base.crash.Breadcrumb
/** /**
* Records breadcrumbs when the fragment changes. * Records breadcrumbs when the fragment changes.

View File

@ -122,7 +122,7 @@ internal class OneTimeMessageDeliveryObserver(
authType: AuthType authType: AuthType
) { ) {
lazyAccount.value.withConstellation { lazyAccount.value.withConstellation {
it.processRawEventAsync(String(message)) processRawEventAsync(String(message))
} }
MainScope().launch { MainScope().launch {

View File

@ -9,6 +9,7 @@ import androidx.navigation.NavDestination
import mozilla.components.lib.crash.Crash import mozilla.components.lib.crash.Crash
import mozilla.components.lib.crash.CrashReporter import mozilla.components.lib.crash.CrashReporter
import mozilla.components.lib.crash.service.CrashReporterService 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.any
import mozilla.components.support.test.mock import mozilla.components.support.test.mock
import org.junit.Test import org.junit.Test
@ -19,7 +20,7 @@ internal class BreadcrumbRecorderTest {
@Test @Test
fun `ensure crash reporter recordCrashBreadcrumb is called`() { fun `ensure crash reporter recordCrashBreadcrumb is called`() {
val service = object : CrashReporterService { 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.NativeCodeCrash): String? = ""
override fun report(crash: Crash.UncaughtExceptionCrash): String? = "" override fun report(crash: Crash.UncaughtExceptionCrash): String? = ""
} }

View File

@ -3,5 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
object AndroidComponents { object AndroidComponents {
const val VERSION = "40.0.20200504130127" const val VERSION = "41.0.20200505190119"
} }