mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
cleanup
This commit is contained in:
parent
19713a40ad
commit
d3e521ca6e
3 changed files with 6 additions and 5 deletions
|
@ -220,10 +220,10 @@
|
|||
|
||||
<receiver android:name="BTReceiver">
|
||||
<intent-filter>
|
||||
<action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
|
||||
<action android:name="android.bluetooth.device.action.ACL_CONNECTED" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.bluetooth.device.action.ACL_CONNECTED" />
|
||||
<action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
|
|
|
@ -32,9 +32,10 @@ public class BTReceiver extends BroadcastReceiver {
|
|||
public void onReceive( Context context, Intent intent )
|
||||
{
|
||||
if ( XWApp.BTSUPPORTED ) {
|
||||
DbgUtils.logf( "BTReceiver.onReceive()" );
|
||||
String action = intent.getAction();
|
||||
DbgUtils.logf( "BTReceiver.onReceive(action=%s)", action );
|
||||
DbgUtils.logdf( "BTReceiver.onReceive(action=%s, intent=%s)",
|
||||
action, intent.toString() );
|
||||
|
||||
if ( action.equals( BluetoothDevice.ACTION_ACL_CONNECTED ) ) {
|
||||
BTService.startService( context );
|
||||
} else if ( action.equals( BluetoothAdapter.ACTION_STATE_CHANGED ) ) {
|
||||
|
|
|
@ -92,7 +92,7 @@ public class NetStateCache {
|
|||
}
|
||||
|
||||
boolean result = s_netAvail || s_onSDKSim;
|
||||
DbgUtils.logf( "netAvail() => %b", result );
|
||||
DbgUtils.logdf( "netAvail() => %b", result );
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue