<@U4G0RCF0E> `apply` will make `this` point to the...
# android
r
@grahamborland
apply
will make
this
point to the View you're inflating, so it's trying to use
shortcuts
as an extension of the newly inflated view instead of the Activity(?) you're in. Try using
this@OuterComponent.shortcuts
inside the apply to reference the same thing you're referencing outside of the apply. (Replace "OuterComponent" with the name of the class you're doing this inside of, obviously)
g
Ah yes, of course. That fixes it. Thanks. 🙂