mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
reflect bt radio state in in-game net status handler
This commit is contained in:
parent
ff82ff1e7c
commit
e52422afcc
1 changed files with 10 additions and 4 deletions
|
@ -74,9 +74,6 @@ public class ConnStatusHandler {
|
|||
public SuccessRecord()
|
||||
{
|
||||
m_time = new Time();
|
||||
lastSuccess = 0;
|
||||
lastFailure = 0;
|
||||
successNewer = false;
|
||||
}
|
||||
|
||||
public boolean haveFailure()
|
||||
|
@ -132,6 +129,8 @@ public class ConnStatusHandler {
|
|||
}
|
||||
}
|
||||
|
||||
private ConnStatusHandler() {}
|
||||
|
||||
private static HashMap<CommsConnType,SuccessRecord[]> s_records =
|
||||
new HashMap<CommsConnType,SuccessRecord[]>();
|
||||
private static Class s_lockObj = ConnStatusHandler.class;
|
||||
|
@ -510,6 +509,14 @@ public class ConnStatusHandler {
|
|||
result = XWApp.SMSSUPPORTED && XWPrefs.getSMSEnabled( context )
|
||||
&& !getAirplaneModeOn( context );
|
||||
break;
|
||||
case COMMS_CONN_BT:
|
||||
result = XWApp.BTSUPPORTED && BTService.BTEnabled()
|
||||
&& !getAirplaneModeOn( context );
|
||||
break;
|
||||
default:
|
||||
DbgUtils.logf( "ConnStatusHandler:connTypeEnabled: %s not handled",
|
||||
connType.toString() );
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@ -521,5 +528,4 @@ public class ConnStatusHandler {
|
|||
Settings.System.AIRPLANE_MODE_ON, 0 );
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue