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