Index: adblockplussbrowser/src/main/java/org/adblockplus/sbrowser/contentblocker/util/SubscriptionUtils.java |
=================================================================== |
--- a/adblockplussbrowser/src/main/java/org/adblockplus/sbrowser/contentblocker/util/SubscriptionUtils.java |
+++ b/adblockplussbrowser/src/main/java/org/adblockplus/sbrowser/contentblocker/util/SubscriptionUtils.java |
@@ -16,16 +16,17 @@ |
*/ |
package org.adblockplus.sbrowser.contentblocker.util; |
import java.util.List; |
import java.util.Locale; |
import org.adblockplus.adblockplussbrowser.BuildConfig; |
+import org.adblockplus.sbrowser.contentblocker.engine.Notification; |
import org.adblockplus.sbrowser.contentblocker.engine.DefaultSubscriptionInfo; |
import org.adblockplus.sbrowser.contentblocker.engine.Engine; |
import android.content.res.Resources; |
public class SubscriptionUtils |
{ |
@@ -91,9 +92,14 @@ public class SubscriptionUtils |
case YIDDISH_OLD: |
return YIDDISH_NEW; |
case INDONESIAN_OLD: |
return INDONESIAN_NEW; |
default: |
return language; |
} |
} |
+ |
+ public static boolean isNotificationSubscription(final String id) |
+ { |
+ return id != null && id.contains(Notification.NOTIFICATION_URL); |
+ } |
} |