mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Refactor: Move ApiModule to flavor specific directories (#1913)
This commit is contained in:
parent
a62788d4ba
commit
11224b84cb
6 changed files with 128 additions and 5 deletions
|
|
@ -384,7 +384,7 @@ fun DeviceHardwareImage(
|
|||
deviceHardware: DeviceHardware,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
val hwImg = deviceHardware.images?.get(1) ?: deviceHardware.images?.get(0) ?: "unknown.svg"
|
||||
val hwImg = deviceHardware.images?.getOrNull(1) ?: deviceHardware.images?.getOrNull(0) ?: "unknown.svg"
|
||||
val imageUrl = "https://flasher.meshtastic.org/img/devices/$hwImg"
|
||||
val listener = object : ImageRequest.Listener {
|
||||
override fun onStart(request: ImageRequest) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue