diff --git a/skunkworks_crow/src/main/java/org/odk/share/views/ui/bluetooth/BluetoothListAdapter.java b/skunkworks_crow/src/main/java/org/odk/share/views/ui/bluetooth/BluetoothListAdapter.java index bf225542..622141ee 100644 --- a/skunkworks_crow/src/main/java/org/odk/share/views/ui/bluetooth/BluetoothListAdapter.java +++ b/skunkworks_crow/src/main/java/org/odk/share/views/ui/bluetooth/BluetoothListAdapter.java @@ -1,5 +1,6 @@ package org.odk.share.views.ui.bluetooth; +import android.bluetooth.BluetoothClass; import android.bluetooth.BluetoothDevice; import android.content.Context; import android.view.LayoutInflater; @@ -48,8 +49,10 @@ public void setDevices(List dateSet) { } public void addDevice(BluetoothDevice bluetoothDevice) { - if (!bluetoothDeviceList.contains(bluetoothDevice)) { - this.bluetoothDeviceList.add(bluetoothDevice); + if (!bluetoothDeviceList.contains(bluetoothDevice) && bluetoothDevice.getBluetoothClass().getDeviceClass() != -1) { + if (bluetoothDevice.getBluetoothClass().getDeviceClass() == BluetoothClass.Device.PHONE_SMART) { + this.bluetoothDeviceList.add(bluetoothDevice); + } } notifyDataSetChanged(); }