From 4c48b473ac41fb953b49134d2df7046ef4da1f4f Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Sat, 28 Jan 2017 22:17:41 +0100 Subject: [PATCH] Show device type in GBDeviceCandidate.toString() --- .../freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java index cec517a64..c6d561149 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java @@ -127,7 +127,7 @@ public class GBDeviceCandidate implements Parcelable { deviceName = (String) method.invoke(device); } } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException ignore) { - LOG.info("Could not get device alias for " + deviceName); + LOG.info("Could not get device alias for " + device.getName()); } if (deviceName == null || deviceName.length() == 0) { deviceName = device.getName(); @@ -167,6 +167,6 @@ public class GBDeviceCandidate implements Parcelable { @Override public String toString() { - return getName() + ": " + getMacAddress(); + return getName() + ": " + getMacAddress() + " (" + getDeviceType() + ")"; } }