mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-10 16:26:46 +02:00
display device address in info menu (IP:PORT / MAC)
This commit is contained in:
parent
2d49ce505a
commit
8970bbe044
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user