| LEFT | RIGHT |
| 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 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 static | 75 static |
| 76 { | 76 { |
| 77 for (int i = 0; i < BUILTIN_TITLES.length; i++) | 77 for (int i = 0; i < BUILTIN_TITLES.length; i++) |
| 78 { | 78 { |
| 79 BUILTIN_URL_TO_INDEX.put(BUILTIN_LISTS[i * 2 + 1], Integer.valueOf(i)); | 79 BUILTIN_URL_TO_INDEX.put(BUILTIN_LISTS[i * 2 + 1], Integer.valueOf(i)); |
| 80 } | 80 } |
| 81 | 81 |
| 82 IGNORED_URLS.add("https://easylist-downloads.adblockplus.org/exceptionrules.
txt"); | 82 IGNORED_URLS.add("https://easylist-downloads.adblockplus.org/exceptionrules.
txt"); |
| 83 } | 83 } |
| 84 | 84 |
| 85 private synchronized static void initRecommendedSubscriptions(Context context) | 85 private synchronized static void initRecommendedSubscriptions(final Context co
ntext) |
| 86 { | 86 { |
| 87 if (recommendedSubscriptions == null) | 87 if (recommendedSubscriptions == null) |
| 88 { | 88 { |
| 89 recommendedSubscriptions = SubscriptionContainer.create(context, false); | 89 recommendedSubscriptions = SubscriptionContainer.create(context, false); |
| 90 | 90 |
| 91 for (SubscriptionContainer.Subscription s : recommendedSubscriptions.getSu
bscriptions(false)) | 91 for (SubscriptionContainer.Subscription s : recommendedSubscriptions.getSu
bscriptions(false)) |
| 92 { | 92 { |
| 93 IGNORED_URLS.add(s.url); | 93 IGNORED_URLS.add(s.url); |
| 94 } | 94 } |
| 95 } | 95 } |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 // ignored | 346 // ignored |
| 347 } | 347 } |
| 348 | 348 |
| 349 @Override | 349 @Override |
| 350 public void onApiRequestFailed(String errorMessage) | 350 public void onApiRequestFailed(String errorMessage) |
| 351 { | 351 { |
| 352 // ignored | 352 // ignored |
| 353 } | 353 } |
| 354 } | 354 } |
| 355 } | 355 } |
| LEFT | RIGHT |