mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-11 08:48:06 +01:00
cleanup
This commit is contained in:
parent
032f8c1f99
commit
40215337c9
1 changed files with 3 additions and 2 deletions
|
@ -100,11 +100,12 @@ public class NetStateCache {
|
||||||
|
|
||||||
NetworkInfo ni = (NetworkInfo)intent.
|
NetworkInfo ni = (NetworkInfo)intent.
|
||||||
getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
|
getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
|
||||||
|
NetworkInfo.State state = ni.getState();
|
||||||
DbgUtils.logf( "CommsBroadcastReceiver.onReceive: %s",
|
DbgUtils.logf( "CommsBroadcastReceiver.onReceive: %s",
|
||||||
ni.getState().toString() );
|
state.toString() );
|
||||||
|
|
||||||
boolean netAvail;
|
boolean netAvail;
|
||||||
switch ( ni.getState() ) {
|
switch ( state ) {
|
||||||
case CONNECTED:
|
case CONNECTED:
|
||||||
netAvail = true;
|
netAvail = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue