Open P-Zenker opened 3 years ago
Android API: 30 Mapbox Navigation SDK version: com.mapbox.navigation:ui:1.1.2 & com.mapbox.mapboxsdk:mapbox-sdk-services:5.7.0
Use mapboxNavigationView.retrieveFeedbackButton().hide()
mapboxNavigationView.retrieveFeedbackButton().hide()
Only the feedback button disappears
The feedback disappears. But the recenter button disappears also...
If I use requireView().findViewById<View>(R.id.feedbackFab).visibility = View.GONE the recenter button is available
requireView().findViewById<View>(R.id.feedbackFab).visibility = View.GONE
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Android API: 30 Mapbox Navigation SDK version: com.mapbox.navigation:ui:1.1.2 & com.mapbox.mapboxsdk:mapbox-sdk-services:5.7.0
Steps to trigger behavior
Use
mapboxNavigationView.retrieveFeedbackButton().hide()
Expected behavior
Only the feedback button disappears
Actual behavior
The feedback disappears. But the recenter button disappears also...
My fix
If I use
requireView().findViewById<View>(R.id.feedbackFab).visibility = View.GONE
the recenter button is available