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

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

Issue 29375826: Issue 4903 - Allow to specify file system root (Closed)
Patch Set: removed init(), added doc Created March 17, 2017, 7:36 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
« no previous file with comments | « libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld