Index: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java |
=================================================================== |
--- a/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java |
+++ b/adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java |
@@ -198,16 +198,18 @@ final class Subscriptions |
// See https://issues.adblockplus.org/ticket/4772 |
if (!filter.matches(UNSUPPORTED_FILTERS_REGEX)) |
{ |
w.write(filter); |
w.write('\n'); |
} |
else |
{ |
+ w.write(filter); |
+ w.write('\n'); |
diegocarloslima
2017/09/22 17:43:43
We shouldn't revert this temporary fix in this tic
jens
2017/09/26 10:25:02
Sorry, I don't know how these two lines slipped in
|
Log.d(TAG, "Ignoring unsupported filter: " + filter); |
} |
} |
} |
} |
public Subscription add(final Subscription sub) |
{ |
@@ -215,16 +217,21 @@ final class Subscriptions |
if (!this.subscriptions.containsKey(id)) |
{ |
this.subscriptions.put(id, sub); |
return sub; |
} |
return this.subscriptions.get(id); |
} |
+ public boolean remove(final String id) |
+ { |
+ return this.subscriptions.remove(id) != null; |
+ } |
+ |
public static Subscriptions initialize(final Engine engine, final File appFolder, |
final File cacheFolder) |
{ |
final Subscriptions subs = new Subscriptions(engine, appFolder, cacheFolder); |
subs.subscriptionFolder.mkdirs(); |
subs.cacheFolder.mkdirs(); |