Christophe Beyls
1 min readMar 2, 2020

--

You should probably clear the reference to the Lifecycle after it’s destroyed or you may get a small memory leak. You should make it a nullable var instead of a lateinit var.

--

--

Christophe Beyls
Christophe Beyls

Written by Christophe Beyls

Android developer from Belgium, blogging about advanced programming topics.

Responses (1)