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 73d51d4c28926fdf023eafb70c44f1f302271c61..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 |
@@ -43,7 +43,9 @@ public class SettingsActivity |
protected void onCreate(Bundle savedInstanceState) |
{ |
super.onCreate(savedInstanceState); |
- AdblockHelper.get().retain(MainActivity.ADBLOCKENGINE_RETAIN_ASYNC); |
+ |
+ // retaining AdblockEngine asynchronously |
+ AdblockHelper.get().getProvider().retain(true); |
insertGeneralFragment(); |
} |
@@ -75,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 |
@@ -112,6 +114,6 @@ public class SettingsActivity |
protected void onDestroy() |
{ |
super.onDestroy(); |
- AdblockHelper.get().release(); |
+ AdblockHelper.get().getProvider().release(); |
} |
} |