From 28dd5bff4b7aa419e98000028a5cf02a7a5d5518 Mon Sep 17 00:00:00 2001 From: "travis.liao" Date: Fri, 20 Aug 2021 14:33:15 +0800 Subject: [PATCH] Fix isInternetConnected return false when user connect wifi and vpn (below Android 10). --- .../src/main/java/com/launchdarkly/sdk/android/LDUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/launchdarkly-android-client-sdk/src/main/java/com/launchdarkly/sdk/android/LDUtil.java b/launchdarkly-android-client-sdk/src/main/java/com/launchdarkly/sdk/android/LDUtil.java index 7b530e6d..780e14a1 100644 --- a/launchdarkly-android-client-sdk/src/main/java/com/launchdarkly/sdk/android/LDUtil.java +++ b/launchdarkly-android-client-sdk/src/main/java/com/launchdarkly/sdk/android/LDUtil.java @@ -50,6 +50,7 @@ static boolean isInternetConnected(Context context) { || nwc.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) || nwc.hasTransport(NetworkCapabilities.TRANSPORT_ETHERNET) || nwc.hasTransport(NetworkCapabilities.TRANSPORT_BLUETOOTH) + || nwc.hasTransport(NetworkCapabilities.TRANSPORT_VPN) ); } else { NetworkInfo active = cm.getActiveNetworkInfo();