From 7fbe5349a241e4e7b7d1bf1bec75b22566e8f1e9 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 12 Oct 2019 13:51:51 +0200 Subject: export: use content resolver on android Q+ Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/config/InetAddresses.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/com/wireguard/config') 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); -- cgit v1.2.3