Index: src/org/adblockplus/android/ABPEngine.java |
diff --git a/src/org/adblockplus/android/ABPEngine.java b/src/org/adblockplus/android/ABPEngine.java |
index 3be672be429e8642a79f86a13871577e1c2b9fd5..ab56b87a439eac785c444605d22e7554e2685ec7 100644 |
--- a/src/org/adblockplus/android/ABPEngine.java |
+++ b/src/org/adblockplus/android/ABPEngine.java |
@@ -200,15 +200,12 @@ public final class ABPEngine |
public void setSubscription(final String url) |
{ |
- Subscription sub = null; |
for (final Subscription s : this.filterEngine.getListedSubscriptions()) |
{ |
- if (url.equals(s.getProperty("url").toString())) |
- { |
- sub = s; |
- } |
s.removeFromList(); |
} |
+ |
+ final Subscription sub = this.filterEngine.getSubscription(url); |
if (sub != null) |
{ |
sub.addToList(); |