You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for sharing that work !
In the ActivityDataBinding.kt which is using the lazy delegate.
You made an object implementing the lazy interface and storing the value in the binding reference.
-> line 12 private var binding: T? = null. (this var is static 💀 )
This is so bad and even as this causes a memory leak that will never free the attached activity to that reference.
You should make a simple class not a singleton.
I can do a pull request to fix that if you think that this could help you.
Just let me know 👍
The text was updated successfully, but these errors were encountered:
Thank you for sharing that work !
In the
ActivityDataBinding.kt
which is using the lazy delegate.You made an
object
implementing thelazy
interface and storing the value in thebinding
reference.-> line 12
private var binding: T? = null
. (this var is static 💀 )This is so bad and even as this causes a memory leak that will never free the attached activity to that reference.
You should make a simple class not a singleton.
I can do a pull request to fix that if you think that this could help you.
Just let me know 👍
The text was updated successfully, but these errors were encountered: