From 75a645d58538658d014ed0058d26e198baf83569 Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Mon, 4 Jul 2022 17:30:34 +0200 Subject: [PATCH] Fossil Hybrid HR: Fix error in app version detection --- .../fossil_hr/application/ApplicationsListRequest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/fossil_hr/application/ApplicationsListRequest.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/fossil_hr/application/ApplicationsListRequest.java index f115b96a3..8c0888ec4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/fossil_hr/application/ApplicationsListRequest.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/fossil_hr/application/ApplicationsListRequest.java @@ -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,