Skip to content

Commit

Permalink
#45 When we are outside of all of the pages, the selected path overla…
Browse files Browse the repository at this point in the history
…y gets cleared so that none of the boxes are green
  • Loading branch information
hallahan committed Apr 23, 2016
1 parent 636f6ae commit 19c0c37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ private void findPage(ILatLng latLng) {
}

private void noPageFound() {
clearSelectedPathOverlay();
if (activity != null && activity instanceof FPListener) {
((FPListener)activity).onMapCenterPageChangeMessage(null);
}
Expand All @@ -200,10 +201,15 @@ private String pageMessage(FPPage page) {
return title() + " " + page.pageNumber();
}

private void setSelectedPathOverlay(FPPage page) {
private void clearSelectedPathOverlay() {
if (selectedPathOverlay != null) {
selectedPathOverlay.getPaint().setColor(Color.BLACK);
selectedPathOverlay = null;
}
}

private void setSelectedPathOverlay(FPPage page) {
clearSelectedPathOverlay();
PathOverlay pathOverlay = page.pathOverlay();
List<Overlay> overlays = mapView.getOverlays();

Expand Down

This file was deleted.

0 comments on commit 19c0c37

Please sign in to comment.