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

Commit

Permalink
[android] dismiss the foreground color only when the style is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos committed Dec 14, 2018
1 parent 2528601 commit 6c5e892
Showing 1 changed file with 6 additions and 4 deletions.
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

0 comments on commit 6c5e892

Please sign in to comment.