Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-webview/src/org/adblockplus/libadblockplus/android/webview/AdblockWebView.java

Issue 29389555: Issue 5010 - Allow to preload subscription files (Closed)
Patch Set: fixed typo, now using official aa file Created March 30, 2017, 2:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « libadblockplus-android-tests/build.gradle ('k') | libadblockplus-android-webviewapp/res/raw/easylist_min.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld