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?
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?