1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2025-09-10 10:49:42 +02:00

Update android sdk to api 26

This commit is contained in:
Gregor Santner 2017-08-04 05:42:43 +02:00
parent a5a307c076
commit acb27766a8
No known key found for this signature in database
GPG key ID: 7E83A7834AECB009
9 changed files with 93 additions and 28 deletions

View file

@ -5,7 +5,7 @@
* worth it, you can buy me a coke in return. Provided as is without any kind
* of warranty. No attribution required. - Gregor Santner
*
* License: Creative Commons Zero (CC0 1.0)
* License of this file: Creative Commons Zero (CC0 1.0)
* http://creativecommons.org/publicdomain/zero/1.0/
* ----------------------------------------------------------------------------
*/
@ -47,6 +47,7 @@ import java.util.Set;
/**
* Simple Host-Based AdBlocker
*/
@SuppressWarnings({"WeakerAccess", "SpellCheckingInspection"})
public class AdBlock {
private static final AdBlock instance = new AdBlock();
@ -163,7 +164,7 @@ public class AdBlock {
if (resFilename.startsWith("adblock_domains__")) {
adblockResIds.add(resId);
}
} catch (IllegalAccessException ignored) {
} catch (IllegalAccessException | IllegalArgumentException ignored) {
}
}
return adblockResIds;