Why is `ViewModelProvider.Factory` not a `fun inte...
# android
h
Why is
ViewModelProvider.Factory
not a
fun interface
? This would allow you to pass a lambda instead.
e
it's a Java interface so SAM conversion should be applicable
h
well, that's probably worth filing a feature request about then
1
h
Okay, I will fill an issue 😄
Hm, simply adding
fun
is not possible, because
Factory
has no generics, and in an
fun interface
, the single abstract method cannot have generics alone. Alternative would be adding generics everywhere or wildcards...