Skip to content

Commit

Permalink
let ethernet be detected if this is the active connection
Browse files Browse the repository at this point in the history
  • Loading branch information
rorist committed Jan 22, 2015
1 parent 51462d0 commit b693f01
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/info/lamatricexiste/network/ActivityNet.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ public void onReceive(Context ctxt, Intent intent) {
setButtons(false);
}
}
} else if (type == 3) { // ETH
} else if (type == 3 || type == 9) { // ETH
net.getIp();
info_ip_str = getString(R.string.net_ip, net.ip, net.cidr, net.intf);
info_in_str = "";
info_mo_str = getString(R.string.net_mode) + getString(R.string.net_mode_eth);
setButtons(false);
Log.i(TAG, "Ethernet connectivity detected!");
info_mo_str = getString(R.string.net_mode)
+ getString(R.string.net_mode_eth);
} else {
Log.i(TAG, "Connectivity unknown!");
info_mo_str = getString(R.string.net_mode)
Expand Down

0 comments on commit b693f01

Please # to comment.