Skip to content

Commit ba8d567

Browse files
authored
fix(android): add networkMode ethernet to networkType (#14194)
1 parent aabd1af commit ba8d567

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android/modules/network/src/java/ti/modules/titanium/network/NetworkModule.java

+3
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ protected int networkTypeToTitanium(boolean online, int androidType)
212212
case ConnectivityManager.TYPE_MOBILE:
213213
type = NetworkModule.NETWORK_MOBILE;
214214
break;
215+
case ConnectivityManager.TYPE_ETHERNET:
216+
type = NetworkModule.NETWORK_LAN;
217+
break;
215218
default:
216219
type = NetworkModule.NETWORK_UNKNOWN;
217220
}

0 commit comments

Comments
 (0)