Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
wrong check for cellular network capability (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Apr 20, 2020
1 parent d03695d commit 5b0dd73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static String getConnectionType(@NotNull Context context, @NotNull ILogge
if (networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_ETHERNET)) {
return "ethernet";
}
if (networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_ETHERNET)) {
if (networkCapabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) {
return "cellular";
}
}
Expand Down

0 comments on commit 5b0dd73

Please sign in to comment.