Skip to content

Commit

Permalink
fix: Properly report no connection as 'none' on Android 24+ (react-na…
Browse files Browse the repository at this point in the history
  • Loading branch information
powdahound authored and andrejborstnik committed Jul 8, 2020
1 parent e6b7253 commit 9cfe57b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ private void updateAndSend() {
} else if (mNetworkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) {
connectionType = CONNECTION_TYPE_WIFI;
}
} else {
connectionType = CONNECTION_TYPE_NONE;
}

updateConnectivity(connectionType, effectiveConnectionType);
Expand Down

0 comments on commit 9cfe57b

Please sign in to comment.