Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0159fafb authored by Zekan Qian's avatar Zekan Qian Committed by Android (Google) Code Review
Browse files

Merge "Fix test failure."

parents 167691ce 3840ec8f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -59,7 +59,8 @@ abstract class SpaEnvironment(context: Context) {

    val entryRepository = lazy { SettingsEntryRepository(pageProviderRepository.value) }

    val appContext: Context = context.applicationContext
    // In Robolectric test, applicationContext is not available. Use context as fallback.
    val appContext: Context = context.applicationContext ?: context

    open val browseActivityClass: Class<out Activity>? = null