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 19, 2018
1 parent d26d2f6 commit 49e870c
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 49e870c

Please sign in to comment.