fix #1981
This commit is contained in:
parent
751a104716
commit
7125bfb43e
|
@ -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
|
## 1.0.12
|
||||||
|
|
||||||
- Updated `flutter_inappwebview_platform_interface` version dependency to `^1.0.10`
|
- Updated `flutter_inappwebview_platform_interface` version dependency to `^1.0.10`
|
||||||
|
|
|
@ -389,10 +389,12 @@ final public class InAppWebView extends InputAwareWebView implements InAppWebVie
|
||||||
settings.setSaveFormData(customSettings.saveFormData);
|
settings.setSaveFormData(customSettings.saveFormData);
|
||||||
if (customSettings.incognito)
|
if (customSettings.incognito)
|
||||||
setIncognito(true);
|
setIncognito(true);
|
||||||
if (customSettings.hardwareAcceleration)
|
if (customSettings.useHybridComposition) {
|
||||||
setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
if (customSettings.hardwareAcceleration)
|
||||||
else
|
setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
||||||
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
|
else
|
||||||
|
setLayerType(View.LAYER_TYPE_NONE, null);
|
||||||
|
}
|
||||||
if (customSettings.regexToCancelSubFramesLoading != null) {
|
if (customSettings.regexToCancelSubFramesLoading != null) {
|
||||||
regexToCancelSubFramesLoadingCompiled = Pattern.compile(customSettings.regexToCancelSubFramesLoading);
|
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)
|
if (newSettingsMap.get("incognito") != null && customSettings.incognito != newCustomSettings.incognito)
|
||||||
setIncognito(newCustomSettings.incognito);
|
setIncognito(newCustomSettings.incognito);
|
||||||
|
|
||||||
if (newSettingsMap.get("hardwareAcceleration") != null && customSettings.hardwareAcceleration != newCustomSettings.hardwareAcceleration) {
|
if (customSettings.useHybridComposition) {
|
||||||
if (newCustomSettings.hardwareAcceleration)
|
if (newSettingsMap.get("hardwareAcceleration") != null && customSettings.hardwareAcceleration != newCustomSettings.hardwareAcceleration) {
|
||||||
setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
if (newCustomSettings.hardwareAcceleration)
|
||||||
else
|
setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
||||||
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
|
else
|
||||||
|
setLayerType(View.LAYER_TYPE_NONE, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newSettingsMap.get("regexToCancelSubFramesLoading") != null && (customSettings.regexToCancelSubFramesLoading == null ||
|
if (newSettingsMap.get("regexToCancelSubFramesLoading") != null && (customSettings.regexToCancelSubFramesLoading == null ||
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: flutter_inappwebview_android
|
name: flutter_inappwebview_android
|
||||||
description: Android implementation of the flutter_inappwebview plugin.
|
description: Android implementation of the flutter_inappwebview plugin.
|
||||||
version: 1.0.12
|
version: 1.0.13
|
||||||
homepage: https://inappwebview.dev/
|
homepage: https://inappwebview.dev/
|
||||||
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_android
|
repository: https://github.com/pichillilorenzo/flutter_inappwebview/tree/master/flutter_inappwebview_android
|
||||||
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
||||||
|
|
Loading…
Reference in New Issue