mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
add uvlux card (#2366)
Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
4fbd2ce28a
commit
a8094f6ca4
2 changed files with 8 additions and 0 deletions
|
|
@ -811,6 +811,13 @@ private fun EnvironmentMetrics(
|
|||
value = "%.0f lx".format(lux)
|
||||
)
|
||||
}
|
||||
if (hasUvLux()) {
|
||||
InfoCard(
|
||||
icon = Icons.Default.LightMode, // You may want to use a different icon for UV
|
||||
text = stringResource(R.string.uv_lux),
|
||||
value = "%.0f lx".format(uvLux)
|
||||
)
|
||||
}
|
||||
if (hasWindSpeed()) {
|
||||
@Suppress("MagicNumber")
|
||||
val normalizedBearing = (windDirection % 360 + 360) % 360
|
||||
|
|
|
|||
|
|
@ -729,4 +729,5 @@
|
|||
<string name="unknown_channel">Unknown Channel</string>
|
||||
<string name="warning">Warning</string>
|
||||
<string name="overflow_menu">Overflow menu</string>
|
||||
<string name="uv_lux">UV Lux</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue