display device address in info menu (IP:PORT / MAC)

This commit is contained in:
Andreas Shimokawa 2016-05-28 11:32:36 +02:00
parent 2d49ce505a
commit 8970bbe044
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public class GBDevice implements Parcelable {
public static final String EXTRA_DEVICE = "device"; public static final String EXTRA_DEVICE = "device";
private static final String DEVINFO_HW_VER = "HW: "; private static final String DEVINFO_HW_VER = "HW: ";
private static final String DEVINFO_FW_VER = "FW: "; private static final String DEVINFO_FW_VER = "FW: ";
private static final String DEVINFO_ADDR = "ADDR: ";
private final String mName; private final String mName;
private final String mAddress; private final String mAddress;
private final DeviceType mDeviceType; private final DeviceType mDeviceType;
@ -346,6 +347,9 @@ public class GBDevice implements Parcelable {
if (mFirmwareVersion != null) { if (mFirmwareVersion != null) {
result.add(new GenericItem(DEVINFO_FW_VER, mFirmwareVersion)); result.add(new GenericItem(DEVINFO_FW_VER, mFirmwareVersion));
} }
if (mAddress != null) {
result.add(new GenericItem(DEVINFO_ADDR, mAddress));
}
Collections.sort(result); Collections.sort(result);
return result; return result;
} }