mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Show campaigns (#2113)
* Show campaigns * Added a ui util class SwipableCardView which passes the onSwipe event to its children * NearbyCardView & CampaignView extend SwipableCardView * Fetch campaigns in ContributionsFragment * Added an option to enable disable campaign in Settings/Preferences * synced strings with master * removed duplicate initialsation of CampaignPresenter
This commit is contained in:
parent
707c52c768
commit
1b01c6517f
22 changed files with 608 additions and 47 deletions
16
app/src/main/java/fr/free/nrw/commons/BasePresenter.java
Normal file
16
app/src/main/java/fr/free/nrw/commons/BasePresenter.java
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue