mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Fix #36 - allow users to select 'none' for the preferred radio
If none is selected, we do not leave our service running. And we do not start it on boot.
This commit is contained in:
parent
7a3cda314e
commit
ce14fde33b
4 changed files with 67 additions and 40 deletions
|
|
@ -4,4 +4,13 @@ import java.io.Closeable
|
|||
|
||||
interface IRadioInterface : Closeable {
|
||||
fun handleSendToRadio(p: ByteArray)
|
||||
}
|
||||
|
||||
class NopInterface : IRadioInterface {
|
||||
override fun handleSendToRadio(p: ByteArray) {
|
||||
}
|
||||
|
||||
override fun close() {
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue