I have a situation similar to the following example and when I call this
it references the Activity
not the OnClickListener
. Is there way to make this a reference of the listener?
private fun onClick() = View.OnClickListener {
// How to make 'this' a reference of OnClickListener instead of the Activity
}