1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-11 03:04:25 +02:00

added extra Bluetooth icons for device supported / not supported, see issue #372

This commit is contained in:
oliexdev
2019-01-05 16:24:25 +01:00
parent 4cf727f820
commit 057741bfe0
13 changed files with 2 additions and 2 deletions

View File

@@ -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);

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 991 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB