1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Fossil Hybrid HR: Fix error in app version detection

This commit is contained in:
Arjan Schrijver 2022-07-04 17:30:34 +02:00
parent 951772626c
commit 75a645d585

View File

@ -38,11 +38,10 @@ public class ApplicationsListRequest extends FileLookupAndGetRequest{
buffer.get(); // null byte
byte handle = buffer.get();
int hash = buffer.getInt();
String version = String.format("%d.%d", buffer.get(), buffer.get());
buffer.get(); // unknown
int version_minor = buffer.get();
int version_major = buffer.get();
buffer.get(); // unknown
String version = String.format("%d.%d", version_major, version_minor);
applicationInfos.add(new ApplicationInformation(
name,
version,