Skip to content

Commit

Permalink
fix: Properly report no connection as 'none' on Android 24+ (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
powdahound authored and matt-oakes committed Apr 26, 2019
1 parent 9a0d9a5 commit efcb261
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -70,6 +70,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 efcb261

Please sign in to comment.