Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Dismiss the foreground color only when the style is loaded #13582

Merged
merged 1 commit into from
Dec 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1002,10 +1002,12 @@ private class InitialRenderCallback implements OnDidFinishRenderingFrameListener

@Override
public void onDidFinishRenderingFrame(boolean fully) {
renderCount++;
if (renderCount == 2) {
MapView.this.setForeground(null);
removeOnDidFinishRenderingFrameListener(this);
if (mapboxMap != null && mapboxMap.getStyle() != null && mapboxMap.getStyle().isFullyLoaded()) {
renderCount++;
if (renderCount == 3) {
MapView.this.setForeground(null);
removeOnDidFinishRenderingFrameListener(this);
}
}
}

Expand Down