Skip to content

Commit

Permalink
Hide wayname when camera is not tracking Location
Browse files Browse the repository at this point in the history
  • Loading branch information
danesfeder committed Jun 13, 2018
1 parent b467b64 commit 90c27eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ interface View {

boolean isSummaryBottomSheetHidden();

void updateWaynameVisibility(boolean isVisible);

void updateCameraTrackingEnabled(boolean isEnabled);

void resetCameraPosition();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ void updateResumeState(boolean resumeState) {
void onRecenterClick() {
view.setSummaryBehaviorHideable(false);
view.setSummaryBehaviorState(BottomSheetBehavior.STATE_EXPANDED);
view.updateWaynameVisibility(true);
view.resetCameraPosition();
view.hideRecenterBtn();
}
Expand All @@ -35,6 +36,7 @@ void onMapScroll() {
view.setSummaryBehaviorHideable(true);
view.setSummaryBehaviorState(BottomSheetBehavior.STATE_HIDDEN);
view.updateCameraTrackingEnabled(false);
view.updateWaynameVisibility(false);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ public void updateWaynameView(String wayname) {
navigationMap.updateWaynameView(wayname);
}

@Override
public void updateWaynameVisibility(boolean isVisible) {
navigationMap.updateWaynameVisibility(isVisible);
}
Expand Down

0 comments on commit 90c27eb

Please sign in to comment.