Android MVP template for Android Studio
AndroidX migration by @namhvcntt
If you're still using support libraries, please use version 2.2.2
Fix a crash when creating a new MVP Activity reported by @asrulsibaoel.
This release adds Dagger as a dependency and handle the activity name better in the manifest.
ClassCastException
. You need to ensure you are using the last version of support library to avoid any leak.onStart
method of the presenter: Now the boolean passed tells if the view has been created, rather than if it's the first time the onStart method is reached. This way, you know if you should update your view according to the presenter state more easily: If viewCreated
is true, then your view has just been created and thus its state should be updated, otherwise the view has just re-started with its old state and there's no need to update it.Fix a bug with Fragment's LoaderManager that can lead to memory leaks
This release adds Presenter survival accros Activity re-creation on orientation changes.
First release with support for MVP boilerplate, fragment and activity.
You can use this release code if you don't want to implement the full presenter persistency with Loader pattern (see README for more details).