From 8226207dbf1fd968a182ead477856e4ce1424fcd Mon Sep 17 00:00:00 2001
From: andrekir <andrekir@pm.me>
Date: Tue, 17 Dec 2024 12:31:16 -0300
Subject: [PATCH] fix: node key status dialog public key selection

---
 .../com/geeksville/mesh/ui/components/NodeKeyStatusIcon.kt | 7 ++++++-
 app/src/main/res/values/strings.xml                        | 2 ++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/app/src/main/java/com/geeksville/mesh/ui/components/NodeKeyStatusIcon.kt b/app/src/main/java/com/geeksville/mesh/ui/components/NodeKeyStatusIcon.kt
index 10b814aa2..174fff468 100644
--- a/app/src/main/java/com/geeksville/mesh/ui/components/NodeKeyStatusIcon.kt
+++ b/app/src/main/java/com/geeksville/mesh/ui/components/NodeKeyStatusIcon.kt
@@ -92,9 +92,14 @@ private fun KeyStatusDialog(
                 Spacer(Modifier.height(16.dp))
                 if (key != null && title == R.string.encryption_pkc) {
                     val keyString = Base64.encodeToString(key.toByteArray(), Base64.NO_WRAP)
+                    Text(
+                        text = stringResource(id = R.string.config_security_public_key) + ":",
+                        textAlign = TextAlign.Center,
+                    )
+                    Spacer(Modifier.height(8.dp))
                     SelectionContainer {
                         Text(
-                            text = "Public Key: $keyString",
+                            text = keyString,
                             textAlign = TextAlign.Center,
                         )
                     }
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a67242570..63975f30e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -68,6 +68,8 @@
     <string name="config_device_disableTripleClick_summary">Disables the triple-press of user button to enable or disable GPS.</string>
     <string name="config_device_ledHeartbeatDisabled_summary">Controls the blinking LED on the device. For most devices this will control one of the up to 4 LEDs, the charger and GPS LEDs are not controllable.</string>
     <string name="config_device_transmitOverLora_summary">Whether in addition to sending it to MQTT and the PhoneAPI, our NeighborInfo should be transmitted over LoRa. Not available on a channel with default key and name.</string>
+    <string name="config_security_public_key">Public Key</string>
+    <string name="config_security_private_key">Private Key</string>
 
     <string name="elevation_suffix" translatable="false">MSL</string>
     <string name="channel_air_util" translatable="false">ChUtil %.1f%% AirUtilTX %.1f%%</string>