mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-24 07:58:34 +01:00
remove unused constant
This commit is contained in:
parent
4f17c64301
commit
8957b3ff53
4 changed files with 21 additions and 26 deletions
|
@ -32,7 +32,6 @@ public class BTReceiver extends BroadcastReceiver {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive( Context context, Intent intent )
|
public void onReceive( Context context, Intent intent )
|
||||||
{
|
{
|
||||||
if ( XWApp.BTSUPPORTED ) {
|
|
||||||
String action = intent.getAction();
|
String action = intent.getAction();
|
||||||
Log.d( TAG, "BTReceiver.onReceive(action=%s, intent=%s)",
|
Log.d( TAG, "BTReceiver.onReceive(action=%s, intent=%s)",
|
||||||
action, intent.toString() );
|
action, intent.toString() );
|
||||||
|
@ -58,4 +57,3 @@ public class BTReceiver extends BroadcastReceiver {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -346,8 +346,7 @@ public class BTService extends XWJIService {
|
||||||
m_btMsgSink = new BTMsgSink();
|
m_btMsgSink = new BTMsgSink();
|
||||||
mHandler = new Handler();
|
mHandler = new Handler();
|
||||||
|
|
||||||
BluetoothAdapter adapter = XWApp.BTSUPPORTED
|
BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
|
||||||
? BluetoothAdapter.getDefaultAdapter() : null;
|
|
||||||
if ( null != adapter && adapter.isEnabled() ) {
|
if ( null != adapter && adapter.isEnabled() ) {
|
||||||
m_adapter = adapter;
|
m_adapter = adapter;
|
||||||
Log.i( TAG, "onCreate(); bt name = %s; bt addr = %s",
|
Log.i( TAG, "onCreate(); bt name = %s; bt addr = %s",
|
||||||
|
|
|
@ -674,8 +674,7 @@ public class ConnStatusHandler {
|
||||||
&& !getAirplaneModeOn( context );
|
&& !getAirplaneModeOn( context );
|
||||||
break;
|
break;
|
||||||
case COMMS_CONN_BT:
|
case COMMS_CONN_BT:
|
||||||
result = XWApp.BTSUPPORTED && BTService.BTEnabled()
|
result = BTService.BTEnabled();
|
||||||
&& BTService.BTEnabled();
|
|
||||||
// No: we can be in airplane mode but with BT turned on manually.
|
// No: we can be in airplane mode but with BT turned on manually.
|
||||||
//!getAirplaneModeOn( context );
|
//!getAirplaneModeOn( context );
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -45,7 +45,6 @@ public class XWApp extends Application
|
||||||
implements LifecycleObserver, NBSProxy.Callbacks {
|
implements LifecycleObserver, NBSProxy.Callbacks {
|
||||||
private static final String TAG = XWApp.class.getSimpleName();
|
private static final String TAG = XWApp.class.getSimpleName();
|
||||||
|
|
||||||
public static final boolean BTSUPPORTED = true;
|
|
||||||
public static final boolean DEBUG_EXP_TIMERS = false;
|
public static final boolean DEBUG_EXP_TIMERS = false;
|
||||||
public static final boolean LOCUTILS_ENABLED = false;
|
public static final boolean LOCUTILS_ENABLED = false;
|
||||||
public static final boolean CONTEXT_MENUS_ENABLED = true;
|
public static final boolean CONTEXT_MENUS_ENABLED = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue