Ok, so I was wondering, if I have something like t...
# android
j
Ok, so I was wondering, if I have something like this
Copy code
val recyclerView by lazy{find<RecyclerView>(R.id.rw_tasks_list)}
in a fragment and then when I go back to the fragment, and the cycle repeats itself, an adapter does not seem to be attached anymore. Which can be solved by not using lazy. But I am thinking that might be caused only because it's not a mutable property. So how do I create a delegate like lazy for a var? I didn't find anything useful in documentation and my random attempts are not working.