added extra Bluetooth icons for device supported / not supported, see issue #372
@@ -214,7 +214,7 @@ public class BluetoothPreferences extends PreferenceFragment {
|
|||||||
formatDeviceName(device), btDevice.driverName(), device.getType());
|
formatDeviceName(device), btDevice.driverName(), device.getType());
|
||||||
prefBtDevice.setOnPreferenceClickListener(new onClickListenerDeviceSelect());
|
prefBtDevice.setOnPreferenceClickListener(new onClickListenerDeviceSelect());
|
||||||
prefBtDevice.setKey(device.getAddress());
|
prefBtDevice.setKey(device.getAddress());
|
||||||
prefBtDevice.setIcon(R.drawable.ic_bluetooth_connection_lost);
|
prefBtDevice.setIcon(R.drawable.ic_bluetooth_device_supported);
|
||||||
prefBtDevice.setSummary(btDevice.driverName());
|
prefBtDevice.setSummary(btDevice.driverName());
|
||||||
|
|
||||||
int tintColor = new EditText(getActivity()).getCurrentTextColor();
|
int tintColor = new EditText(getActivity()).getCurrentTextColor();
|
||||||
@@ -223,7 +223,7 @@ public class BluetoothPreferences extends PreferenceFragment {
|
|||||||
else {
|
else {
|
||||||
Timber.d("Found unsupported device %s (type: %d)",
|
Timber.d("Found unsupported device %s (type: %d)",
|
||||||
formatDeviceName(device), device.getType());
|
formatDeviceName(device), device.getType());
|
||||||
prefBtDevice.setIcon(R.drawable.ic_bluetooth_disabled);
|
prefBtDevice.setIcon(R.drawable.ic_bluetooth_device_not_supported);
|
||||||
prefBtDevice.setSummary(R.string.label_bt_device_no_support);
|
prefBtDevice.setSummary(R.string.label_bt_device_no_support);
|
||||||
prefBtDevice.setEnabled(false);
|
prefBtDevice.setEnabled(false);
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 813 B |
After Width: | Height: | Size: 901 B |
After Width: | Height: | Size: 509 B |
After Width: | Height: | Size: 476 B |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 603 B |
After Width: | Height: | Size: 991 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.0 KiB |