mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
docs: Unify notification channel management and migrate unit tests (#4867)
This commit is contained in:
parent
b1e433e0dc
commit
6e50db0b91
14 changed files with 586 additions and 221 deletions
|
|
@ -51,8 +51,10 @@ class FakeRadioController : RadioController {
|
|||
val sentPackets = mutableListOf<DataPacket>()
|
||||
val favoritedNodes = mutableListOf<Int>()
|
||||
val sentSharedContacts = mutableListOf<Int>()
|
||||
var throwOnSend: Boolean = false
|
||||
|
||||
override suspend fun sendMessage(packet: DataPacket) {
|
||||
if (throwOnSend) error("Fake send failure")
|
||||
sentPackets.add(packet)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue