mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Define refreshView method as updateMapAndList which is a better naming. Define it at presenter part.
This commit is contained in:
parent
80708023aa
commit
1c27c3cbe3
2 changed files with 11 additions and 0 deletions
|
|
@ -19,5 +19,6 @@ public interface NearbyParentFragmentContract {
|
|||
void displayListFragmentExpanded();
|
||||
void onTabSelected();
|
||||
void initializeNearbyOperations();
|
||||
void updateMapAndList(LocationServiceManager.LocationChangeType locationChangeType);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,6 +41,16 @@ public class NearbyParentFragmentPresenter
|
|||
nearbyParentFragmentView.registerLocationUpdates(locationManager);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This method should be the single point to update Map and List. Triggered by location
|
||||
* changes
|
||||
* @param locationChangeType defines if location changed significantly or slightly
|
||||
*/
|
||||
@Override
|
||||
public void updateMapAndList(LocationServiceManager.LocationChangeType locationChangeType) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue