Index: libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java |
diff --git a/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java b/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java |
index cac1ec3163b97f07a5ab7faa7614e3b8740f1d82..8ac08eb4e6bb7d684cdfb4b6eb0fa347d102918e 100644 |
--- a/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java |
+++ b/libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java |
@@ -954,10 +954,12 @@ public class AdblockWebView extends WebView |
w("Creating AdblockEngine"); |
// assuming `this.debugMode` can be used as `developmentBuild` value |
- adblockEngine = AdblockEngine.create( |
- AdblockEngine.generateAppInfo(this.getContext(), debugMode), |
- this.getContext().getCacheDir().getAbsolutePath(), |
- true); |
+ adblockEngine = AdblockEngine |
+ .builder( |
+ AdblockEngine.generateAppInfo(this.getContext(), debugMode), |
+ this.getContext().getDir(AdblockEngine.BASE_PATH_DIRECTORY, Context.MODE_PRIVATE).getAbsolutePath()) |
+ .enableElementHiding(true) |
+ .build(); |
} |
private class ElemHideThread extends Thread |