This PR moves pure java code out of MainActivity and into MainPresenterImpl as well as adds more test coverage for the moved logic.
Proposed Changes
Map listener handling (for onMapPressed and onMapDoubleTapped) has been moved into the presenter. In addition, showSearchResults and addSearchResultsToMap have both been moved into the presenter and replaced by smaller methods in the MainViewController.
Overview
This PR moves pure java code out of
MainActivity
and intoMainPresenterImpl
as well as adds more test coverage for the moved logic.Proposed Changes
Map listener handling (for
onMapPressed
andonMapDoubleTapped
) has been moved into the presenter. In addition,showSearchResults
andaddSearchResultsToMap
have both been moved into the presenter and replaced by smaller methods in theMainViewController
.