apps-android-commons/app/src/main/java/fr/free/nrw/commons/BasePresenter.java
Ronan Brigdale de9a72d465 Fix Lint Issues #171: Remove unused imports (#2533)
* Fix Lint Issues #171: Remove unused imports

Removed unused Java imports

* Fix Lint Issues #171: Perfromance issue, close cursor

Cursor was not closed when no longer needed
2019-03-02 19:30:50 +05:30

16 lines
404 B
Java

package fr.free.nrw.commons;
/**
* Base presenter, enforcing contracts to atach and detach view
*/
public interface BasePresenter {
/**
* Until a view is attached, it is open to listen events from the presenter
*/
void onAttachView(MvpView view);
/**
* Detaching a view makes sure that the view no more receives events from the presenter
*/
void onDetachView();
}