From b693f0182bc7694efbdcc6503c830c1289072a84 Mon Sep 17 00:00:00 2001 From: Aubort Jean-Baptiste Date: Thu, 22 Jan 2015 18:20:43 +0100 Subject: [PATCH] let ethernet be detected if this is the active connection --- src/info/lamatricexiste/network/ActivityNet.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/info/lamatricexiste/network/ActivityNet.java b/src/info/lamatricexiste/network/ActivityNet.java index 3cfe47f..3652e02 100644 --- a/src/info/lamatricexiste/network/ActivityNet.java +++ b/src/info/lamatricexiste/network/ActivityNet.java @@ -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)