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
arekolek
04/01/2020, 9:10 AM
what is the reason to put the enum in the companion object rather than in view model class directly?
➕ 1
o
Ofir Bar
04/01/2020, 12:17 PM
no reason, i better slap my self 😂
It shortened my code a bit, thank you
l
Luis
04/01/2020, 10:27 PM
You can import the enum directly if you want. Alt+Enter will give you that suggestion.