mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(model): remove ConnectionState helper methods and fix updateStatusNotification return type (#5074)
This commit is contained in:
parent
174315b21f
commit
62264b10c6
16 changed files with 51 additions and 35 deletions
|
|
@ -347,11 +347,12 @@ class MeshConnectionManagerImpl(
|
|||
updateStatusNotification(t)
|
||||
}
|
||||
|
||||
override fun updateStatusNotification(telemetry: Telemetry?): Any =
|
||||
override fun updateStatusNotification(telemetry: Telemetry?) {
|
||||
serviceNotifications.updateServiceStateNotification(
|
||||
serviceRepository.connectionState.value,
|
||||
telemetry = telemetry,
|
||||
)
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val DEVICE_SLEEP_TIMEOUT_SECONDS = 30
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue