sforkowany z mirror/meshtastic-android
fix software update button
rodzic
7bd6615cb7
commit
7faf4d2d79
1
TODO.md
1
TODO.md
|
@ -2,7 +2,6 @@
|
|||
|
||||
- add faq entry about range and antennas and rain
|
||||
- first message sent is still doubled for some people
|
||||
- disable software update button after update finishes
|
||||
- let users set arbitrary params in android
|
||||
- add a low level settings screen (let user change any of the RadioConfig parameters)
|
||||
|
||||
|
|
|
@ -484,10 +484,12 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
|||
updateProgressBar.progress = service.updateStatus
|
||||
delay(2000) // Only check occasionally
|
||||
}
|
||||
|
||||
val isSuccess = (service.updateStatus == -1)
|
||||
scanStatusText.text =
|
||||
if (service.updateStatus == -1) "Update successful" else "Update failed"
|
||||
if (isSuccess) "Update successful" else "Update failed"
|
||||
updateProgressBar.isEnabled = false
|
||||
updateFirmwareButton.isEnabled = true
|
||||
updateFirmwareButton.isEnabled = !isSuccess
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue