Replace "unknown" with "?" for unknown hop count (#1308)

This commit replaces the string "unknown" with a question mark ("?") when displaying the hop count for a
 node if the hop count is unknown (-1). This provides a more concise and visually clear indication of an unknown hop count.
pull/1312/head
James Rich 2024-10-13 06:17:21 -05:00 zatwierdzone przez GitHub
rodzic 38942ec557
commit 86dc8f2b1c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -32,7 +32,7 @@ fun signalInfo(
val hopsString = "%s: %s".format(
stringResource(R.string.hops_away),
if (node.hopsAway == -1) {
stringResource(R.string.unknown)
"?"
} else {
node.hopsAway.toString()
}