edxAndroidPro1
edxAndroidPro1 copied to clipboard
Memory leak in MVP implementation
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!