Merged Android fix leaking MethodChannel through anonymous class
This commit is contained in:
parent
9d54f918e1
commit
db008bb9c0
|
@ -36,6 +36,7 @@
|
|||
- Fixed iOS `findNext`
|
||||
- Fixed Android `RendererPriorityPolicy.waivedWhenNotVisible` type 'Null' is not a subtype of type 'bool'
|
||||
- Fixed iOS 14.0 crash when calling `callAsyncJavaScript` method
|
||||
- Merged "Android fix leaking MethodChannel through anonymous class" [#1201](https://github.com/pichillilorenzo/flutter_inappwebview/pull/1201) (thanks to [emakar](https://github.com/emakar))
|
||||
|
||||
## 5.4.4+3
|
||||
|
||||
|
|
|
@ -88,13 +88,7 @@ public class ServiceWorkerManager implements Disposable {
|
|||
}
|
||||
|
||||
private ServiceWorkerClientCompat dummyServiceWorkerClientCompat() {
|
||||
return new ServiceWorkerClientCompat() {
|
||||
@Nullable
|
||||
@Override
|
||||
public WebResourceResponse shouldInterceptRequest(@NonNull WebResourceRequest request) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
return DummyServiceWorkerClientCompat.INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -109,4 +103,14 @@ public class ServiceWorkerManager implements Disposable {
|
|||
}
|
||||
plugin = null;
|
||||
}
|
||||
|
||||
private static final class DummyServiceWorkerClientCompat extends ServiceWorkerClientCompat {
|
||||
static final ServiceWorkerClientCompat INSTANCE = new DummyServiceWorkerClientCompat();
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public WebResourceResponse shouldInterceptRequest(@NonNull WebResourceRequest request) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue