1
0
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:
Me7c7 2024-08-29 23:52:05 +03:00 committed by José Rebelo
parent 4989334ff4
commit 2aafad46eb

View File

@ -129,7 +129,9 @@ public class App {
this.params.screenShape = subTlv.getString(0x06); this.params.screenShape = subTlv.getString(0x06);
this.params.width = subTlv.getShort(0x07); this.params.width = subTlv.getShort(0x07);
this.params.height = subTlv.getShort(0x08); this.params.height = subTlv.getShort(0x08);
if (subTlv.contains(0x09))
this.params.unknown3 = subTlv.getInteger(0x09); this.params.unknown3 = subTlv.getInteger(0x09);
if(subTlv.contains(0x0a))
this.params.buildType = subTlv.getString(0x0a); this.params.buildType = subTlv.getString(0x0a);
} }
} }