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

Unified Diff: src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java

Issue 29355386: Issue 4463 - Content blocker unavailable error message (Closed)
Patch Set: Adjusting indentation Created Oct. 7, 2016, 2:38 a.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 | « src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
===================================================================
--- a/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
+++ b/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
@@ -46,19 +46,19 @@ final class Subscriptions
private final Engine engine;
private final File subscriptionFolder;
private final File cacheFolder;
private final boolean wasUnitialized;
private Subscriptions(final Engine engine, final File appFolder, final File cacheFolder)
{
this.engine = engine;
- this.subscriptionFolder = new File(appFolder, "subscriptions");
+ this.subscriptionFolder = appFolder;
this.wasUnitialized = !this.subscriptionFolder.exists();
- this.cacheFolder = new File(cacheFolder, "subscriptions");
+ this.cacheFolder = cacheFolder;
}
public boolean wasUnitialized()
{
return this.wasUnitialized;
}
public File createAndWriteFile() throws IOException
@@ -179,18 +179,17 @@ final class Subscriptions
}
}
final BufferedWriter w = new BufferedWriter(
new OutputStreamWriter(new FileOutputStream(output), "UTF-8"));
try
{
Log.d(TAG, "Writing " + filters.size() + " filters");
- w.write("[Adblock Plus 2.0]\n");
- w.write("! This file was automatically created.\n");
+ Engine.writeFilterHeaders(w);
for (final String filter : filters)
{
w.write(filter);
w.write('\n');
}
}
finally
{
« no previous file with comments | « src/org/adblockplus/sbrowser/contentblocker/engine/Engine.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld