mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
exclude computers from BT paried devices scan -- since doesn't work on
ubuntu right now.
This commit is contained in:
parent
baee084a90
commit
27b3004b43
2 changed files with 3 additions and 1 deletions
|
@ -1019,7 +1019,8 @@ public class BTService extends XWService {
|
|||
synchronized( m_addrs ) {
|
||||
for ( BluetoothDevice dev : pairedDevs ) {
|
||||
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() );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ public class XWApp extends Application {
|
|||
public static final boolean LOCUTILS_ENABLED = false;
|
||||
public static final boolean CONTEXT_MENUS_ENABLED = true;
|
||||
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 int MAX_TRAY_TILES = 7; // comtypes.h
|
||||
|
|
Loading…
Add table
Reference in a new issue