Use also instead of apply
This commit is contained in:
parent
7082082f3c
commit
908990f07f
|
|
@ -36,9 +36,9 @@ class YandexMapManager(
|
|||
}
|
||||
|
||||
private val userLocationLayer by lazy {
|
||||
MapKitFactory.getInstance().createUserLocationLayer(mapView.mapWindow).apply {
|
||||
isVisible = false
|
||||
setObjectListener(this@YandexMapManager)
|
||||
MapKitFactory.getInstance().createUserLocationLayer(mapView.mapWindow).also {
|
||||
it.isVisible = false
|
||||
it.setObjectListener(this)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue