mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 03:31:05 +00:00
fix(android): unable to re-enable hardware acceleration after disabled it (#553)
This commit is contained in:
committed by
Thibault Malbranche
parent
406241462f
commit
c8977ec7ce
@@ -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