1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Show device type in GBDeviceCandidate.toString()

This commit is contained in:
cpfeiffer 2017-01-28 22:17:41 +01:00
parent 42031cb50f
commit 4c48b473ac

View File

@ -127,7 +127,7 @@ public class GBDeviceCandidate implements Parcelable {
deviceName = (String) method.invoke(device); deviceName = (String) method.invoke(device);
} }
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException ignore) { } 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) { if (deviceName == null || deviceName.length() == 0) {
deviceName = device.getName(); deviceName = device.getName();
@ -167,6 +167,6 @@ public class GBDeviceCandidate implements Parcelable {
@Override @Override
public String toString() { public String toString() {
return getName() + ": " + getMacAddress(); return getName() + ": " + getMacAddress() + " (" + getDeviceType() + ")";
} }
} }