mirror of
https://github.com/expo/react-native-webview.git
synced 2026-11-15 09:18:06 -10:00
fix(android): unable to re-enable hardware acceleration after disabled it (#553)
This commit is contained in:
1 parent
406241462f
commit
c8977ec7ce
1 file changed
+2
@@ -290,6 +290,8 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
public void setHardwareAccelerationDisabled(WebView view, boolean disabled) {
|
||||
if (disabled) {
|
||||
view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
|
||||
} else {
|
||||
view.setLayerType(View.LAYER_TYPE_NONE, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user