From d5643468b9c2ac1ec6973f59f9b00fbdf7540771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Thu, 14 May 2026 23:49:03 +0100 Subject: [PATCH] iGPSPORT: Update install notification progress --- .../service/devices/igpsport/IGPSportDeviceSupport.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/igpsport/IGPSportDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/igpsport/IGPSportDeviceSupport.java index c32a960084..86e70a1f38 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/igpsport/IGPSportDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/igpsport/IGPSportDeviceSupport.java @@ -357,15 +357,14 @@ public class IGPSportDeviceSupport extends AbstractBTLESingleDeviceSupport { switch (mainService) { case Common.service_type_index.enum_SERVICE_TYPE_INDEX_FILE_OPERATION_VALUE: if (mainOperation == Common.SERVICE_OPERATE_TYPE.enum_SERVICE_OPERATE_TYPE_ADD_VALUE) { + final String resultMessage = result == 0 ? getContext().getString(R.string.route_upload_completed) : getContext().getString(R.string.route_upload_failed); + GB.updateInstallNotification(resultMessage, false, 100, getContext()); + gbDevice.unsetBusyTask(); gbDevice.sendDeviceUpdateIntent(getContext()); final LocalBroadcastManager broadcastManager = LocalBroadcastManager.getInstance(GBApplication.getContext()); broadcastManager.sendBroadcast(new Intent(GB.ACTION_SET_INFO_TEXT).putExtra(GB.DISPLAY_MESSAGE_MESSAGE, "")); - if (result == 0) { - broadcastManager.sendBroadcast(new Intent(GB.ACTION_SET_PROGRESS_TEXT).putExtra(GB.DISPLAY_MESSAGE_MESSAGE, getContext().getString(R.string.route_upload_completed))); - } else { - broadcastManager.sendBroadcast(new Intent(GB.ACTION_SET_PROGRESS_TEXT).putExtra(GB.DISPLAY_MESSAGE_MESSAGE, getContext().getString(R.string.route_upload_failed))); - } + broadcastManager.sendBroadcast(new Intent(GB.ACTION_SET_PROGRESS_TEXT).putExtra(GB.DISPLAY_MESSAGE_MESSAGE, resultMessage)); broadcastManager.sendBroadcast(new Intent(GB.ACTION_SET_FINISHED)); } break;