feat: Allow sorting by favorite nodes (#1700)

pull/1516/head^2
todd2982 2025-03-21 16:16:54 -05:00 zatwierdzone przez GitHub
rodzic 8a8ee27ad9
commit 0a7d0ff4be
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
3 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -92,6 +92,7 @@ interface NodeInfoDao {
END
WHEN :sort = 'channel' THEN channel
WHEN :sort = 'via_mqtt' THEN via_mqtt
WHEN :sort = 'via_favorite' THEN is_favorite * -1
ELSE 0
END ASC,
last_heard DESC

Wyświetl plik

@ -27,4 +27,5 @@ enum class NodeSortOption(val sqlValue: String, @StringRes val stringRes: Int) {
HOPS_AWAY("hops_away", R.string.node_sort_hops_away),
CHANNEL("channel", R.string.node_sort_channel),
VIA_MQTT("via_mqtt", R.string.node_sort_via_mqtt),
VIA_FAVORITE("via_favorite", R.string.node_sort_via_favorite),
}

Wyświetl plik

@ -30,6 +30,7 @@
<string name="node_sort_hops_away">Hops away</string>
<string name="node_sort_last_heard">Last heard</string>
<string name="node_sort_via_mqtt">via MQTT</string>
<string name="node_sort_via_favorite">via Favorite</string>
<string name="unrecognized">Unrecognized</string>
<string name="message_status_enroute">Waiting to be acknowledged</string>