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

Unified Diff: libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/SettingsActivity.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/SettingsActivity.java
diff --git a/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/SettingsActivity.java b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/SettingsActivity.java
index e5ae6099958d09478534f4b1264dadd2addf15ac..201830dcdb54a80cf4eda1436d3b2f33bd102460 100644
--- a/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/SettingsActivity.java
+++ b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/SettingsActivity.java
@@ -45,7 +45,7 @@ public class SettingsActivity
super.onCreate(savedInstanceState);
// retaining AdblockEngine asynchronously
- AdblockHelper.get().retain(true);
+ AdblockHelper.get().getProvider().retain(true);
insertGeneralFragment();
}
@@ -77,8 +77,8 @@ public class SettingsActivity
public AdblockEngine getAdblockEngine()
{
// if it's retained asynchronously we have to wait until it's ready
- AdblockHelper.get().waitForReady();
- return AdblockHelper.get().getEngine();
+ AdblockHelper.get().getProvider().waitForReady();
+ return AdblockHelper.get().getProvider().getEngine();
}
@Override
@@ -114,6 +114,6 @@ public class SettingsActivity
protected void onDestroy()
{
super.onDestroy();
- AdblockHelper.get().release();
+ AdblockHelper.get().getProvider().release();
}
}

Powered by Google App Engine
This is Rietveld