mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-05 21:33:01 -05:00
add uvlux card (#2366)
Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user