mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 01:55:50 +01:00
Huawei: Check TLVs before access. Not present in some watches
This commit is contained in:
parent
4989334ff4
commit
2aafad46eb
@ -129,8 +129,10 @@ public class App {
|
||||
this.params.screenShape = subTlv.getString(0x06);
|
||||
this.params.width = subTlv.getShort(0x07);
|
||||
this.params.height = subTlv.getShort(0x08);
|
||||
this.params.unknown3 = subTlv.getInteger(0x09);
|
||||
this.params.buildType = subTlv.getString(0x0a);
|
||||
if (subTlv.contains(0x09))
|
||||
this.params.unknown3 = subTlv.getInteger(0x09);
|
||||
if(subTlv.contains(0x0a))
|
||||
this.params.buildType = subTlv.getString(0x0a);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user