Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lifecycle issues around Recenter, Route overview and Camera functionalities #1072

Closed
Guardiola31337 opened this issue Jul 2, 2018 · 10 comments
Assignees
Labels
bug Defect to be fixed.

Comments

@Guardiola31337
Copy link
Contributor

Guardiola31337 commented Jul 2, 2018

Noticed some issues around Recenter, Route overview and Camera functionalities.

  • The Recenter button and the SummaryBottomSheet disappear after rotating the screen if you swipe the map and click on the top banner (show the list of instructions). Noting that the camera continues tracking the progress even if you swipe the map 👀

recenter_summarybottomsheet_disappear_after_instructions_list_plus_rotation

  • The Recenter button disappears after hiding the list of instructions if click on the overview button and click on the top banner (show the list of instructions). Noting that after swiping and clicking on the Recenter button, it comes back to normal 👀

recenter_disappears_after_instructions_list_plus_overview

  • The camera continues tracking after clicking on the overview button and rotating the screen 👀

camera_continues_tracking_after_overviewed_plus_screen_rotation

  • Recenter functionality disappears after backgrounding and resuming the app. Noting that the camera continues tracking the progress even if you swipe the map 👀

recenter_functionality_disappears_after_backgrounding_resuming_app

I've reported all of them in the same ticket because I believe all are related - we're not dealing with the lifecycle in those situations properly.

@Guardiola31337 Guardiola31337 added bug Defect to be fixed. topic: camera labels Jul 2, 2018
@devotaaabel devotaaabel self-assigned this Jul 2, 2018
@devotaaabel
Copy link
Contributor

Also, if you rotate after creating a route but before launching navigation, it loses the route

@Guardiola31337
Copy link
Contributor Author

Noticed that in some situations the RECENTER button doesn't hide when instruction view list is showing.

recenter_button_does_not_hide_instruction_list

Refs. #714 (comment) - Not completely fixed by #988

Hard to say how I got it though (because I was driving 😬). Will report extra info if seen again.

@Guardiola31337
Copy link
Contributor Author

Will report extra info if seen again.

Found a way of reproducing the issue. If you scroll the map and quickly click on the top banner (while the animation to hide the recenter button is happening) the recenter button appears on top of the instructions list 👀

recenter_on_top_of_instructions_list

cc @devotaaabel

@Guardiola31337
Copy link
Contributor Author

While testing the EmbeddedNavigationActivity from the test app noticed that the map gets automatically recentered after clicking on the overview button and then reload the style (clicking on the FAB). Also, the RECENTER button is still shown after that 👀

recentered_after_reloading_style

@Guardiola31337 Guardiola31337 changed the title Lifecycle issues issues around Recenter, Route overview and Camera functionalities Lifecycle issues around Recenter, Route overview and Camera functionalities Aug 20, 2018
@Guardiola31337
Copy link
Contributor Author

Another OP-related issue was reported by @siavashabdoli

**Mapbox Navigation SDK version:0.16.0

Steps to trigger behavior

Start navigation Activity in Portrait(Landscape) mode.
do not move to avoid new RouteProgress
change the orientation to Landscape(Portrait)
click on overview button in summary bottom sheet

Expected behavior

show OverView state and change camera

Actual behavior

Camera still remain on marker because RouteProgress is null in NavigationCamera

@P-Zenker
Copy link

P-Zenker commented Sep 7, 2018

Another issue related to recenter:

Android API: 25 (Google Nexus 5) & 26 (Samsung A6)
Mapbox Navigation SDK version:0.18.0

Steps to trigger behavior

  1. Use NavigationLauncher.startNavigation
NavigationLauncherOptions options = NavigationLauncherOptions.builder()
        .directionsRoute(directionsRoute)
        .shouldSimulateRoute(false)
        .enableOffRouteDetection(true)
        .waynameChipEnabled(true)
        .build();

NavigationLauncher.startNavigation(getActivity(), options);
  1. Press 'Home'-Button
  2. Go back to App

Expected behavior

Recenter available

Actual behavior

The recenter button is not available

ezgif com-video-to-gif-2

@Guardiola31337
Copy link
Contributor Author

Guardiola31337 commented Jun 20, 2019

We should revisit which issues are still present at this point.

@Guardiola31337
Copy link
Contributor Author

@abhishek1508 are these still issues in the 1.0 UI SDK?

Definitely some of them, so the question here would be, is this something we want to prioritize?

@abhishek1508
Copy link
Contributor

Let's verify
cc @JunDai @cafesilencio @langsmith

@JunDai
Copy link
Contributor

JunDai commented Aug 12, 2020

This isn't an issue any more per my testing of NavigationViewActivity in 1.0

@JunDai JunDai closed this as completed Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect to be fixed.
Projects
None yet
Development

No branches or pull requests

5 participants