mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fix connection to device on gpx upload
This commit is contained in:
+5
-1
@@ -27,10 +27,12 @@ import nodomain.freeyourgadget.gadgetbridge.model.ItemWithDetails
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.GB
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.gpx.model.GpxFile
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.maps.MapsManager
|
||||
import org.slf4j.LoggerFactory
|
||||
|
||||
class GpxRouteInstallerActivity : AbstractGBActivity(), InstallActivity {
|
||||
companion object {
|
||||
private const val ITEM_DETAILS = "details"
|
||||
private val LOG = LoggerFactory.getLogger(GpxRouteInstallerActivity::class.java)
|
||||
}
|
||||
|
||||
private lateinit var binding: ActivityInstallerGpxBinding
|
||||
@@ -60,9 +62,11 @@ class GpxRouteInstallerActivity : AbstractGBActivity(), InstallActivity {
|
||||
}
|
||||
|
||||
if (changedDevice == null || changedDevice != device) {
|
||||
return;
|
||||
return
|
||||
}
|
||||
if (finished) return
|
||||
LOG.debug("Device changed: {}", changedDevice)
|
||||
device = changedDevice
|
||||
refreshBusyState(device)
|
||||
if (!device.isInitialized) {
|
||||
setInstallEnabled(false)
|
||||
|
||||
Reference in New Issue
Block a user