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

Unified Diff: libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/MainActivity.java

Issue 29671734: Issue 6265 - Create shared AdblockEngine instance in AdblockWebView in background (Closed)
Patch Set: addressed Diego's comments Created Jan. 19, 2018, 12:23 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-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/MainActivity.java
diff --git a/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/MainActivity.java b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/MainActivity.java
index cdbb9f225a9141ddfa54ef75a566e0c83ad8544d..73f9711b3c42108928b7c10bac8031f39ee62d4b 100644
--- a/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/MainActivity.java
+++ b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/MainActivity.java
@@ -38,7 +38,7 @@ public class MainActivity extends Activity
public static final boolean DEVELOPMENT_BUILD = true;
// webView can create AdblockEngine instance itself if not passed with `webView.setAdblockEngine()`
- public static final boolean USE_EXTERNAL_ADBLOCKENGINE = false;
+ public static final boolean USE_EXTERNAL_ADBLOCKENGINE = true;
private ProgressBar progress;
private EditText url;
@@ -199,7 +199,7 @@ public class MainActivity extends Activity
if (USE_EXTERNAL_ADBLOCKENGINE)
{
// external AdblockEngine
- webView.setAdblockEngineProvider(AdblockHelper.get().getAdblockEngineProvider());
+ webView.setProvider(AdblockHelper.get().getProvider());
}
else
{

Powered by Google App Engine
This is Rietveld