mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-01 03:55:47 +02:00
Huawei: Check TLVs before access. Not present in some watches
This commit is contained in:
parent
4989334ff4
commit
2aafad46eb
@ -129,7 +129,9 @@ public class App {
|
||||
this.params.screenShape = subTlv.getString(0x06);
|
||||
this.params.width = subTlv.getShort(0x07);
|
||||
this.params.height = subTlv.getShort(0x08);
|
||||
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