OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
3 * Copyright (C) 2006-2013 Eyeo GmbH | 3 * Copyright (C) 2006-2013 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 public native void removeSubscription(String url); | 87 public native void removeSubscription(String url); |
88 | 88 |
89 public native void refreshSubscription(String url); | 89 public native void refreshSubscription(String url); |
90 | 90 |
91 public native void actualizeSubscriptionStatus(String url); | 91 public native void actualizeSubscriptionStatus(String url); |
92 | 92 |
93 public native void setAcceptableAdsEnabled(boolean enabled); | 93 public native void setAcceptableAdsEnabled(boolean enabled); |
94 | 94 |
95 public native String getDocumentationLink(); | 95 public native String getDocumentationLink(); |
96 | 96 |
| 97 public native void setNotifiedAboutAcceptableAds(boolean notified); |
| 98 |
| 99 public native boolean isNotifiedAboutAcceptableAds(); |
| 100 |
97 public native boolean matches(String url, String contentType, String documentU
rl); | 101 public native boolean matches(String url, String contentType, String documentU
rl); |
98 | 102 |
99 public native String[] getSelectorsForDomain(String domain); | 103 public native String[] getSelectorsForDomain(String domain); |
100 | 104 |
101 public native void checkUpdates(); | 105 public native void checkUpdates(); |
102 | 106 |
103 private Notification getNotification(String url, String error) | 107 private Notification getNotification(String url, String error) |
104 { | 108 { |
105 final PendingIntent emptyIntent = PendingIntent.getActivity(context, 0, new
Intent(), 0); | 109 final PendingIntent emptyIntent = PendingIntent.getActivity(context, 0, new
Intent(), 0); |
106 | 110 |
(...skipping 29 matching lines...) Expand all Loading... |
136 | 140 |
137 Notification notification = builder.getNotification(); | 141 Notification notification = builder.getNotification(); |
138 return notification; | 142 return notification; |
139 } | 143 } |
140 | 144 |
141 static | 145 static |
142 { | 146 { |
143 System.loadLibrary("abpEngine"); | 147 System.loadLibrary("abpEngine"); |
144 } | 148 } |
145 } | 149 } |
OLD | NEW |