| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 
| 3  * Copyright (C) 2006-present eyeo GmbH | 3  * Copyright (C) 2006-present eyeo GmbH | 
| 4  * | 4  * | 
| 5  * Adblock Plus is free software: you can redistribute it and/or modify | 5  * Adblock Plus is free software: you can redistribute it and/or modify | 
| 6  * it under the terms of the GNU General Public License version 3 as | 6  * it under the terms of the GNU General Public License version 3 as | 
| 7  * published by the Free Software Foundation. | 7  * published by the Free Software Foundation. | 
| 8  * | 8  * | 
| 9  * Adblock Plus is distributed in the hope that it will be useful, | 9  * Adblock Plus is distributed in the hope that it will be useful, | 
| 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
| 12  * GNU General Public License for more details. | 12  * GNU General Public License for more details. | 
| 13  * | 13  * | 
| 14  * You should have received a copy of the GNU General Public License | 14  * You should have received a copy of the GNU General Public License | 
| 15  * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 15  * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 
| 16  */ | 16  */ | 
| 17 | 17 | 
| 18 package org.adblockplus.sbrowser.contentblocker.util; | 18 package org.adblockplus.sbrowser.contentblocker.util; | 
| 19 | 19 | 
| 20 import java.util.List; | 20 import java.util.List; | 
| 21 import java.util.Locale; | 21 import java.util.Locale; | 
| 22 | 22 | 
| 23 import org.adblockplus.sbrowser.contentblocker.engine.DefaultSubscriptionInfo; | 23 import org.adblockplus.sbrowser.contentblocker.engine.DefaultSubscriptionInfo; | 
| 24 import org.adblockplus.sbrowser.contentblocker.engine.Engine; | 24 import org.adblockplus.sbrowser.contentblocker.engine.Engine; | 
|  | 25 import org.adblockplus.sbrowser.contentblocker.engine.Notification; | 
| 25 | 26 | 
| 26 import android.content.res.Resources; | 27 import android.content.res.Resources; | 
| 27 | 28 | 
| 28 public class SubscriptionUtils | 29 public class SubscriptionUtils | 
| 29 { | 30 { | 
| 30 | 31 | 
| 31   private static final String INDONESIAN_OLD = "in"; | 32   private static final String INDONESIAN_OLD = "in"; | 
| 32   private static final String INDONESIAN_NEW = "id"; | 33   private static final String INDONESIAN_NEW = "id"; | 
| 33   private static final String HEBREW_OLD = "iw"; | 34   private static final String HEBREW_OLD = "iw"; | 
| 34   private static final String HEBREW_NEW = "he"; | 35   private static final String HEBREW_NEW = "he"; | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 81       case HEBREW_OLD: | 82       case HEBREW_OLD: | 
| 82         return HEBREW_NEW; | 83         return HEBREW_NEW; | 
| 83       case YIDDISH_OLD: | 84       case YIDDISH_OLD: | 
| 84         return YIDDISH_NEW; | 85         return YIDDISH_NEW; | 
| 85       case INDONESIAN_OLD: | 86       case INDONESIAN_OLD: | 
| 86         return INDONESIAN_NEW; | 87         return INDONESIAN_NEW; | 
| 87       default: | 88       default: | 
| 88         return language; | 89         return language; | 
| 89     } | 90     } | 
| 90   } | 91   } | 
|  | 92 | 
|  | 93   public static boolean isNotificationSubscription(final String id) | 
|  | 94   { | 
|  | 95     return id != null && id.contains(Notification.NOTIFICATION_URL); | 
|  | 96   } | 
| 91 } | 97 } | 
| OLD | NEW | 
|---|