Feature: Jump to node info from message (#844)

* Highlight the node in the node list tab when the user taps on the node chip in messages

* Represent main tabs as enum for more reliable referencing

* Extract tab labels to string resources for easier translation
Annotate resource IDs with their corresponding Android types

* Index off nodes actually in the adapter since they are sorted

* Update viewmodel when tab changes to prevent jumping to other tabs in onResume

* Mark strings as non-translatable for now
This commit is contained in:
Davis 2024-02-13 14:32:52 -07:00 committed by GitHub
parent a88ffbc0fb
commit 2bfda9784f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 167 additions and 37 deletions

View file

@ -11,6 +11,13 @@
<string name="sample_coords" translatable="false">55.332244 34.442211</string>
<string name="sample_message" translatable="false">hey I found the cache, it is over here next to the big tiger. I\'m kinda scared.</string>
<!-- Main Tabs -->
<string name="main_tab_lbl_messages" translatable="false">Messages</string>
<string name="main_tab_lbl_users" translatable="false">Users</string>
<string name="main_tab_lbl_map" translatable="false">Map</string>
<string name="main_tab_lbl_channel" translatable="false">Channel</string>
<string name="main_tab_lbl_settings" translatable="false">Settings</string>
<string name="channel_name">Channel Name</string>
<string name="channel_options">Channel options</string>
<string name="qr_code">QR code</string>