edxAndroidPro1 icon indicating copy to clipboard operation
edxAndroidPro1 copied to clipboard

Memory leak in MVP implementation

Open bkraszewski opened this issue 7 years ago • 0 comments

Hello, I like your MVP example, but you have to remember, presenter is keeping reference to activity as a view, so it can't be recycled after activity is destroyed.

your presenter need some detachView method, that is called in onDestroy, and set View reference to null here. Thanks!

bkraszewski avatar May 14 '17 11:05 bkraszewski