diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-12 13:51:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-10-12 18:55:28 +0200 |
commit | 7fbe5349a241e4e7b7d1bf1bec75b22566e8f1e9 (patch) | |
tree | 21490ef77ba925811f09fb1964f454e816733921 /app/src/main/java/com/wireguard/config | |
parent | d8bad72fd620e788b259c8d9a78836dbdc78b973 (diff) |
export: use content resolver on android Q+
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/config')
-rw-r--r-- | app/src/main/java/com/wireguard/config/InetAddresses.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/config/InetAddresses.java b/app/src/main/java/com/wireguard/config/InetAddresses.java index 864082e2..6396492e 100644 --- a/app/src/main/java/com/wireguard/config/InetAddresses.java +++ b/app/src/main/java/com/wireguard/config/InetAddresses.java @@ -46,7 +46,7 @@ public final class InetAddresses { if (address.isEmpty()) throw new ParseException(InetAddress.class, address, "Empty address"); try { - if (Build.VERSION.SDK_INT < 29) + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) return (InetAddress) getParserMethod().invoke(null, address); else return android.net.InetAddresses.parseNumericAddress(address); |