mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
make aidl interface strongly typed
This commit is contained in:
parent
5784138c96
commit
613e4f7ec4
3 changed files with 6 additions and 7 deletions
|
|
@ -596,7 +596,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
registerMeshReceiver()
|
||||
|
||||
// Init our messages table with the service's record of past text messages
|
||||
model.messagesState.messages.value = (service.oldMessages as List<DataPacket>).map {
|
||||
model.messagesState.messages.value = service.oldMessages.map {
|
||||
TextMessage(it)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1056,8 +1056,8 @@ class MeshService : Service(), Logging {
|
|||
this@MeshService.radioConfig = MeshProtos.RadioConfig.parseFrom(payload)
|
||||
}
|
||||
|
||||
override fun getNodes(): Array<NodeInfo> = toRemoteExceptions {
|
||||
val r = nodeDBbyID.values.toTypedArray()
|
||||
override fun getNodes(): MutableList<NodeInfo> = toRemoteExceptions {
|
||||
val r = nodeDBbyID.values.toMutableList()
|
||||
info("in getOnline, count=${r.size}")
|
||||
// return arrayOf("+16508675309")
|
||||
r
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue