mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: null safety, update date/time libraries, and migrate tests (#4900)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
f826cac6c8
commit
664ebf218e
163 changed files with 503 additions and 4993 deletions
|
|
@ -40,7 +40,8 @@ enum class TopLevelDestination(val label: StringResource, val route: Route) {
|
|||
;
|
||||
|
||||
companion object {
|
||||
fun fromNavKey(key: NavKey?): TopLevelDestination? =
|
||||
entries.find { dest -> key?.let { it::class == dest.route::class } == true }
|
||||
fun fromNavKey(key: NavKey?): TopLevelDestination? = entries.find { dest ->
|
||||
key?.let { it::class == dest.route::class } == true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue