mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 13:26:50 +01:00
Formatted device information
This commit is contained in:
parent
8f996e04cd
commit
aaa9e7bef2
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user