Chromium webview does not seems to work with Android applyOverrideConfiguration Chromium webview does not seems to work with Android applyOverrideConfiguration android android

Chromium webview does not seems to work with Android applyOverrideConfiguration


As @Martin Edlman commented, it should work with this workaround:

In Kotlin:

override fun getAssets(): AssetManager {    return resources.assets}

In Java:

@Overridepublic AssetManager getAssets() {    return getResources().getAssets();} 


For future; You can try my own implementation. Add below code to your CustomChromeClient;

@Nullable@Overridepublic Bitmap getDefaultVideoPoster() {    if (super.getDefaultVideoPoster() == null) {        return BitmapFactory.decodeResource(context.getResources(),                R.drawable.ic_launcher);    } else {        return super.getDefaultVideoPoster();    }}