Show device type in GBDeviceCandidate.toString()

here
cpfeiffer 2017-01-28 22:17:41 +01:00
parent 42031cb50f
commit 4c48b473ac
1 changed files with 2 additions and 2 deletions

View File

@ -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() + ")";
}
}