mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Implement missing methods
This commit is contained in:
parent
a1e3b2ef6d
commit
3da8e301a4
4 changed files with 6 additions and 9 deletions
|
|
@ -5,7 +5,7 @@ package fr.free.nrw.commons.nearby.mvp.contract;
|
||||||
* this interface. This interface can be considered parent
|
* this interface. This interface can be considered parent
|
||||||
* of both NearbyMapContract and NearbyListContract
|
* of both NearbyMapContract and NearbyListContract
|
||||||
*/
|
*/
|
||||||
public interface NearbyContract {
|
public interface NearbyElementContract {
|
||||||
|
|
||||||
interface View {
|
interface View {
|
||||||
void showPlaces();
|
void showPlaces();
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
package fr.free.nrw.commons.nearby.mvp.contract;
|
package fr.free.nrw.commons.nearby.mvp.contract;
|
||||||
|
|
||||||
import fr.free.nrw.commons.nearby.mvp.contract.NearbyContract;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface defines specific View and UserActions for list
|
* This interface defines specific View and UserActions for list
|
||||||
* part of the nearby. On the other hand both extends methods
|
* part of the nearby. On the other hand both extends methods
|
||||||
|
|
@ -10,11 +8,11 @@ import fr.free.nrw.commons.nearby.mvp.contract.NearbyContract;
|
||||||
*/
|
*/
|
||||||
public interface NearbyListContract {
|
public interface NearbyListContract {
|
||||||
|
|
||||||
interface View extends NearbyContract.View {
|
interface View extends NearbyElementContract.View {
|
||||||
// Even if this is empty for now, I keep this one for code consistency
|
// Even if this is empty for now, I keep this one for code consistency
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserActions extends NearbyContract.UserActions {
|
interface UserActions extends NearbyElementContract.UserActions {
|
||||||
void expandItem();
|
void expandItem();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
package fr.free.nrw.commons.nearby.mvp.contract;
|
package fr.free.nrw.commons.nearby.mvp.contract;
|
||||||
|
|
||||||
import fr.free.nrw.commons.nearby.mvp.contract.NearbyContract;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface defines specific View and UserActions for map
|
* This interface defines specific View and UserActions for map
|
||||||
* part of the nearby. On the other hand both extends methods
|
* part of the nearby. On the other hand both extends methods
|
||||||
|
|
@ -10,13 +8,13 @@ import fr.free.nrw.commons.nearby.mvp.contract.NearbyContract;
|
||||||
*/
|
*/
|
||||||
public interface NearbyMapContract {
|
public interface NearbyMapContract {
|
||||||
|
|
||||||
interface View extends NearbyContract.View{
|
interface View extends NearbyElementContract.View{
|
||||||
void showSearchThisAreaButton();
|
void showSearchThisAreaButton();
|
||||||
void showInformationBottomSheet();
|
void showInformationBottomSheet();
|
||||||
void showFABs();
|
void showFABs();
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UserActions extends NearbyContract.UserActions {
|
interface UserActions extends NearbyElementContract.UserActions {
|
||||||
void searchThisArea();
|
void searchThisArea();
|
||||||
void recenterMap();
|
void recenterMap();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package fr.free.nrw.commons.nearby.mvp.presenter;
|
||||||
import fr.free.nrw.commons.nearby.mvp.contract.NearbyListContract;
|
import fr.free.nrw.commons.nearby.mvp.contract.NearbyListContract;
|
||||||
|
|
||||||
public class NearbyListPresenter implements NearbyListContract.UserActions {
|
public class NearbyListPresenter implements NearbyListContract.UserActions {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void expandItem() {
|
public void expandItem() {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue