Is there a way to shorthen the part in red? (I kno...
# android
o
Is there a way to shorthen the part in red? (I know that in Swift there is something) Following line I am calling an enum which is inside a companion object in my ViewModel. This lne is called from my Activity:
a
what is the reason to put the enum in the companion object rather than in view model class directly?
1
o
no reason, i better slap my self 😂 It shortened my code a bit, thank you
l
You can import the enum directly if you want. Alt+Enter will give you that suggestion.