dalexander
11/10/2015, 6:39 PMvar listener: (view: View) -> Unit = {} I would consider swapping out the listeners in onPause()/onResume() to either do nothing in onPause() and something in onResume(). There are complications to trying to un-set an onclick listener rather than change it to something else. edit: adjusted the onClickListener to a function type so the lambda syntax works.