Refactor: Move ApiModule to flavor specific directories (#1913)

This commit is contained in:
James Rich 2025-05-22 14:53:00 -05:00 committed by GitHub
parent a62788d4ba
commit 11224b84cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 128 additions and 5 deletions

View file

@ -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) {