1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

Formatted device information

This commit is contained in:
dakhnod 2019-07-25 10:31:10 +02:00
parent 8f996e04cd
commit aaa9e7bef2

View File

@ -498,7 +498,11 @@ public class GBDevice implements Parcelable {
public List<ItemWithDetails> getDeviceInfos() {
List<ItemWithDetails> result = new ArrayList<>();
if (mDeviceInfos != null) {
result.addAll(mDeviceInfos);
for (ItemWithDetails deviceInfo : mDeviceInfos){
GenericItem item = new GenericItem(deviceInfo.getName() + ": ", deviceInfo.getDetails());
item.setIcon(deviceInfo.getIcon());
result.add(item);
}
}
if (mModel != null) {
result.add(new GenericItem(DEVINFO_HW_VER, mModel));