Context instead of Activity?
Closed this issue · 2 comments
12people commented
I'm calling the picker from an OnClickAdapter inside a RecyclerHolder, where I only have access to an unspecified Context. Right now, I'm casting Context to Activity, but that's a pretty ugly way to do things. I've taken a quick look at the code and it seems like Activity could be exchanged for the more generic Context. Would that be possible? Is there a reason for prefering Activity?
12people commented
When exchanging Activity for Context, instead of calling getLayoutInflater(), call LayoutInflater.from(context) .
kristiyanP commented
Changed in version 1.1.0