julioyg
12/14/2017, 11:00 AMclass MyClass{
fun doSomething(fc: (String) ->Unit){}
}
and then I call to that function from my activity:
class MyActivity:Activity{
fun onCreate() {
myClassSingleInstance.doSomething({anActivityProperty = it})
}
}
I don't thing that'd leak memory but, does it? would the class keep a reference to the activity?