https://kotlinlang.org logo
#android
Title
# android
f

Florian

08/09/2021, 9:32 AM
Using the Jetpack Navigation library, how do you handle an optional Long id that you send to an add/edit screen? Longs can't be nullable in the Navigation library so do I set the default value to -1 instead?
😶 1
f

FunkyMuse

08/09/2021, 10:09 AM
Yes, set it to -1
f

Florian

08/09/2021, 10:48 AM
@FunkyMuse thank you