mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 09:01:55 +01:00
Formatted device information
This commit is contained in:
parent
487c4b7498
commit
a6c9ab45eb
@ -498,7 +498,11 @@ public class GBDevice implements Parcelable {
|
|||||||
public List<ItemWithDetails> getDeviceInfos() {
|
public List<ItemWithDetails> getDeviceInfos() {
|
||||||
List<ItemWithDetails> result = new ArrayList<>();
|
List<ItemWithDetails> result = new ArrayList<>();
|
||||||
if (mDeviceInfos != null) {
|
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) {
|
if (mModel != null) {
|
||||||
result.add(new GenericItem(DEVINFO_HW_VER, mModel));
|
result.add(new GenericItem(DEVINFO_HW_VER, mModel));
|
||||||
|
Loading…
Reference in New Issue
Block a user