Use also instead of apply

This commit is contained in:
Malik 2019-08-20 12:43:55 +03:00
parent 7082082f3c
commit 908990f07f
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}
}