Index: libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java |
diff --git a/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java |
index 3d6e4afa88c4a72199f2e8bb15542c9924749b68..d9b7410e20c0d39d0d43f7c01ce002fc5d36d831 100644 |
--- a/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java |
+++ b/libadblockplus-android-webviewapp/src/org/adblockplus/libadblockplus/android/webviewapp/Application.java |
@@ -17,6 +17,8 @@ |
package org.adblockplus.libadblockplus.android.webviewapp; |
+import android.content.Context; |
+ |
import org.adblockplus.libadblockplus.android.settings.AdblockHelper; |
public class Application extends android.app.Application |
@@ -27,6 +29,7 @@ public class Application extends android.app.Application |
super.onCreate(); |
// init Adblock |
- AdblockHelper.get().init(this, true, AdblockHelper.PREFERENCE_NAME); |
+ String basePath = getDir("adblock", Context.MODE_PRIVATE).getAbsolutePath(); |
+ AdblockHelper.get().init(this, basePath, true, AdblockHelper.PREFERENCE_NAME); |
} |
} |