I am creating an app with an activity to allow users to view a list of downloaded offline regions and an activity with a map view. If the user opens the activity listing the offline regions before opening the activity with the map view, the callback for MapboxMap.setStyle() never triggers and the map remains grey.
This can also be demonstrated in a single activity with the following code:
Platform: Android Mapbox SDK version:
I am creating an app with an activity to allow users to view a list of downloaded offline regions and an activity with a map view. If the user opens the activity listing the offline regions before opening the activity with the map view, the callback for MapboxMap.setStyle() never triggers and the map remains grey.
This can also be demonstrated in a single activity with the following code:
With the above code, the map remains grey. Commenting out the call to listOfflineRegions makes the map work as expected.
Note: The problem exists whether there are any offline regions or not
Steps to trigger behavior
Expected behavior
Map displays correctly
Actual behavior
Map remains grey