fixes #23981: open download function and override for test

upstream-sync
MatthewTighe 2 years ago committed by mergify[bot]
parent b3c93114a1
commit 9b4a85942d

@ -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