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
|
|
@ -28,12 +28,4 @@ sealed class ConnectionState {
|
|||
|
||||
/** The device is in a light sleep state, and we are waiting for it to wake up and reconnect to us. */
|
||||
data object DeviceSleep : ConnectionState()
|
||||
|
||||
fun isConnected() = this == Connected
|
||||
|
||||
fun isConnecting() = this == Connecting
|
||||
|
||||
fun isDisconnected() = this == Disconnected
|
||||
|
||||
fun isDeviceSleep() = this == DeviceSleep
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue