From c8977ec7cefebb8e0d6ca6bb6216428353d272c5 Mon Sep 17 00:00:00 2001 From: Avery Choke Kar Sing Date: Mon, 13 May 2019 15:38:54 +0800 Subject: [PATCH 1/2] fix(android): unable to re-enable hardware acceleration after disabled it (#553) --- .../com/reactnativecommunity/webview/RNCWebViewManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java b/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java index 290e76d..849b7ee 100644 --- a/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java +++ b/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java @@ -290,6 +290,8 @@ public class RNCWebViewManager extends SimpleViewManager { public void setHardwareAccelerationDisabled(WebView view, boolean disabled) { if (disabled) { view.setLayerType(View.LAYER_TYPE_SOFTWARE, null); + } else { + view.setLayerType(View.LAYER_TYPE_NONE, null); } } From 423aecaa0294311ccadcf834af50ebd1a7767937 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Mon, 13 May 2019 07:40:46 +0000 Subject: [PATCH 2/2] chore(release): 5.8.2 [skip ci] ## [5.8.2](https://github.com/react-native-community/react-native-webview/compare/v5.8.1...v5.8.2) (2019-05-13) ### Bug Fixes * **android:** unable to re-enable hardware acceleration after disabled it ([#553](https://github.com/react-native-community/react-native-webview/issues/553)) ([c8977ec](https://github.com/react-native-community/react-native-webview/commit/c8977ec)) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7aed31d..bf72e32 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "Thibault Malbranche " ], "license": "MIT", - "version": "5.8.1", + "version": "5.8.2", "homepage": "https://github.com/react-native-community/react-native-webview#readme", "scripts": { "ci": "CI=true && yarn lint && yarn test",