mapzen / eraser-map

Privacy-focused mapping application for Android
GNU General Public License v3.0
74 stars 24 forks source link

Preserve search pager position on rotation & backing out of route preview #783

Closed sarahsnow1 closed 7 years ago

sarahsnow1 commented 7 years ago

This PR stores the search pager position in MainPresenter so that it can be used to restore the search results view when either the device is rotated or the user backs out of route preview mode. It also adds tests for this case.

I chose to leave the logic in MainActivity to keep the changes in this PR minimal and plan to move this code into the presenter in a separate PR as part of the ongoing test refactoring.

Closes #778

ecgreb commented 7 years ago

Changes look good just needs a rebase.