[android] - limit visibility, clear callbacks

This commit is contained in:
Tobrun
2018-12-04 18:27:28 +02:00
committed by Tobrun
parent 2efdf938a8
commit 075443e18b
2 changed files with 3 additions and 3 deletions

View File

@@ -206,7 +206,6 @@ public final class MapboxMap {
*/
void onFinishLoadingStyle() {
locationComponent.onFinishLoadingStyle();
locationComponent.onStart();
}
/**
@@ -761,6 +760,7 @@ public final class MapboxMap {
for (Style.OnStyleLoaded styleLoadedCallback : styleLoadedCallbacks) {
styleLoadedCallback.onStyleLoaded(style);
}
styleLoadedCallbacks.clear();
}
});
}

View File

@@ -365,7 +365,7 @@ public class Style {
* Called when the underlying map will start loading a new style. This method will clean up this style
* by setting the java sources and layers in a detached state and removing them from core.
*/
public void onWillStartLoadingStyle() {
void onWillStartLoadingStyle() {
for (Source source : sources.values()) {
if (source != null) {
source.setDetached();
@@ -388,7 +388,7 @@ public class Style {
* Called when the underlying map has finished loading this style.
* This method will add all components added to the builder that were defined with the 'with' prefix.
*/
public void onDidFinishLoadingStyle() {
void onDidFinishLoadingStyle() {
if (!styleLoaded) {
styleLoaded = true;
for (Source source : builder.sources) {