exclude computers from BT paried devices scan -- since doesn't work on

ubuntu right now.
This commit is contained in:
Eric House 2016-04-09 13:57:16 -07:00
parent baee084a90
commit 27b3004b43
2 changed files with 3 additions and 1 deletions

View file

@ -1019,7 +1019,8 @@ public class BTService extends XWService {
synchronized( m_addrs ) { synchronized( m_addrs ) {
for ( BluetoothDevice dev : pairedDevs ) { for ( BluetoothDevice dev : pairedDevs ) {
int clazz = dev.getBluetoothClass().getMajorDeviceClass(); int clazz = dev.getBluetoothClass().getMajorDeviceClass();
if ( Major.PHONE == clazz || Major.COMPUTER == clazz ) { if ( Major.PHONE == clazz
|| (XWApp.BT_SCAN_COMPUTERS && Major.COMPUTER == clazz) ) {
m_addrs.add( dev.getAddress() ); m_addrs.add( dev.getAddress() );
} }
} }

View file

@ -46,6 +46,7 @@ public class XWApp extends Application {
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;
public static final boolean OFFER_DUALPANE = false; public static final boolean OFFER_DUALPANE = false;
public static final boolean BT_SCAN_COMPUTERS = false;
public static final String SMS_PUBLIC_HEADER = "-XW4"; public static final String SMS_PUBLIC_HEADER = "-XW4";
public static final int MAX_TRAY_TILES = 7; // comtypes.h public static final int MAX_TRAY_TILES = 7; // comtypes.h