[fenix] fixes https://github.com/mozilla-mobile/fenix/issues/23981: open download function and override for test

pull/600/head
MatthewTighe 2 years ago committed by mergify[bot]
parent 64903a8e46
commit 8468ef9c13

@ -789,7 +789,7 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
override fun getWorkManagerConfiguration() = Builder().setMinimumLoggingLevel(INFO).build()
@OptIn(DelicateCoroutinesApi::class)
private fun downloadWallpapers() {
open fun downloadWallpapers() {
if (FeatureFlags.showWallpapers) {
GlobalScope.launch {
components.wallpaperManager.downloadAllRemoteWallpapers()

@ -29,6 +29,8 @@ class FenixRobolectricTestApplication : FenixApplication() {
override fun setupInMainProcessOnly() = Unit
override fun downloadWallpapers() = Unit
private fun setApplicationTheme() {
// According to the Robolectric devs, the application context will not have the <application>'s
// theme but will use the platform's default team so we set our theme here. We change it here

Loading…
Cancel
Save