Define refreshView method as updateMapAndList which is a better naming. Define it at presenter part.

This commit is contained in:
neslihanturan 2019-05-16 16:42:53 +03:00
parent 80708023aa
commit 1c27c3cbe3
2 changed files with 11 additions and 0 deletions

View file

@ -19,5 +19,6 @@ public interface NearbyParentFragmentContract {
void displayListFragmentExpanded();
void onTabSelected();
void initializeNearbyOperations();
void updateMapAndList(LocationServiceManager.LocationChangeType locationChangeType);
}
}

View file

@ -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