Commit a205245a authored by mcarare's avatar mcarare
Browse files

Bug 1891254 - Prevent UnsupportedOperationException from...

Bug 1891254 - Prevent UnsupportedOperationException from TranslationsMiddleware. r=android-reviewers,ohall

Differential Revision: https://phabricator.services.mozilla.com/D208017
parent ead3f7ed
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -54,6 +54,13 @@ class FakeEngine : Engine {
    override val version: EngineVersion
        get() = throw NotImplementedError("Not needed for test")

    override fun isTranslationsEngineSupported(
        onSuccess: (Boolean) -> Unit,
        onError: (Throwable) -> Unit,
    ) {
        // do nothing
    }

    override fun createView(context: Context, attrs: AttributeSet?): EngineView =
        throw UnsupportedOperationException()