WebView.enableSlowWholeDocumentDraw 是否活在当前 activity 之后?

Does WebView.enableSlowWholeDocumentDraw live beyond the current activity?

我在我的一个 Web 视图上使用方法 WebView.enableSlowWholeDocumentDraw(),因为我想将其内容保存到文件中。

问题是我有其他网络视图,我希望它们使用新网络视图提供的优化。

有谁知道这个配置是否适用于整个应用程序,或者是否有办法禁用缓慢的整个文档绘制?

谢谢!

是的,确实如此。

如果您查看源代码,您会发现 WebView.enableSlowWholeDocumentDraw() 隐式调用了以下内容:

getFactory().getStatics().enableSlowWholeDocumentDraw();

getFactory() returns 为当前进程提供所有 WebViewWebViewFactoryProvider 实例。

您不能为特定的 WebView.

禁用它