-
-
Save mr5z/bbd76500c887b29acc8dd8a0d4c5a1c4 to your computer and use it in GitHub Desktop.
weird
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This one throws | |
buildColorPicker().apply { | |
enableAutoClose() | |
setCallback { color -> | |
model.map.color = color | |
mapView.invalidate() | |
} | |
show() | |
} | |
// This doesn't | |
buildColorPicker().let { | |
it.enableAutoClose() | |
it.setCallback { color -> | |
model.map.color = color | |
mapView.invalidate() | |
} | |
it.show() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment