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:
parent
42031cb50f
commit
4c48b473ac
@ -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() + ")";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user