antonioleiva
05/31/2017, 7:07 AMasReference()
to prevent leaking the activity, but it becomes really tedious when there are several references to the activity, or even some listeners created inside (you can't use ref()
inside a lambda). Also know this can be easily solved just by extracting a method and just calling that method.