Skip to content

Commit

Permalink
change ArrayList to List
Browse files Browse the repository at this point in the history
  • Loading branch information
hantrungkien committed Jul 19, 2018
1 parent 9fa8f80 commit 12b9836
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BubblePicker : GLSurfaceView {
renderer.backgroundColor = Color(value)
}

var datas: ArrayList<PickerItem>? = null
var datas: List<PickerItem>? = null
set(value) {
field = value
renderer.items = value ?: ArrayList()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PickerRenderer(val glView: View) : GLSurfaceView.Renderer {
Engine.radius = value
}
var listener: BubblePickerListener? = null
var items: ArrayList<PickerItem> = ArrayList()
var items: List<PickerItem> = ArrayList()
val selectedItems: List<PickerItem?>
get() = Engine.selectedBodies.map { circles.firstOrNull { circle -> circle.circleBody == it }?.pickerItem }
var centerImmediately = false
Expand Down

0 comments on commit 12b9836

Please sign in to comment.