Add isLayerReady check in LocationComponent before updating compass listener. (#19)
This commit is contained in:
@@ -1289,7 +1289,7 @@ public final class LocationComponent {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isComponentInitialized || !isComponentStarted || !isEnabled) {
|
||||
if (!isComponentInitialized || !isComponentStarted || !isEnabled || !isLayerReady) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user