This commit is contained in:
Lorenzo Pichilli 2024-01-31 14:00:17 +01:00
parent 751a104716
commit 7125bfb43e
3 changed files with 18 additions and 10 deletions

View File

@ -1,3 +1,7 @@
## 1.0.13
- Fixed "Android emulator using API 34 fails to draw on resume sometimes" [#1981](https://github.com/pichillilorenzo/flutter_inappwebview/issues/1981)
## 1.0.12
- Updated `flutter_inappwebview_platform_interface` version dependency to `^1.0.10`

View File

@ -389,10 +389,12 @@ final public class InAppWebView extends InputAwareWebView implements InAppWebVie
settings.setSaveFormData(customSettings.saveFormData);
if (customSettings.incognito)
setIncognito(true);
if (customSettings.useHybridComposition) {
if (customSettings.hardwareAcceleration)
setLayerType(View.LAYER_TYPE_HARDWARE, null);
else
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
setLayerType(View.LAYER_TYPE_NONE, null);
}
if (customSettings.regexToCancelSubFramesLoading != null) {
regexToCancelSubFramesLoadingCompiled = Pattern.compile(customSettings.regexToCancelSubFramesLoading);
}
@ -1024,11 +1026,13 @@ final public class InAppWebView extends InputAwareWebView implements InAppWebVie
if (newSettingsMap.get("incognito") != null && customSettings.incognito != newCustomSettings.incognito)
setIncognito(newCustomSettings.incognito);
if (customSettings.useHybridComposition) {
if (newSettingsMap.get("hardwareAcceleration") != null && customSettings.hardwareAcceleration != newCustomSettings.hardwareAcceleration) {
if (newCustomSettings.hardwareAcceleration)
setLayerType(View.LAYER_TYPE_HARDWARE, null);
else
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
setLayerType(View.LAYER_TYPE_NONE, null);
}
}
if (newSettingsMap.get("regexToCancelSubFramesLoading") != null && (customSettings.regexToCancelSubFramesLoading == null ||

View File

@ -1,6 +1,6 @@
name: flutter_inappwebview_android
description: Android implementation of the flutter_inappwebview plugin.
version: 1.0.12
version: 1.0.13
homepage: https://inappwebview.dev/
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_android
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues