|
|
|
|
@ -16,14 +16,14 @@ class PlacePickerManager { |
|
|
|
|
activity: PokerAnalyticsActivity, |
|
|
|
|
row: RowRepresentable, |
|
|
|
|
delegate: RowRepresentableDelegate, |
|
|
|
|
maxResults: Int? = 2 |
|
|
|
|
maxResults: Int? = 3 |
|
|
|
|
) { |
|
|
|
|
activity.askForPlacesRequest { success, places -> |
|
|
|
|
if (success && places.size > 0) { |
|
|
|
|
val placesArray = ArrayList<CharSequence>() |
|
|
|
|
for ((index, place) in places.withIndex()) { |
|
|
|
|
placesArray.add(place.place.name.toString()) |
|
|
|
|
if (index == maxResults) { |
|
|
|
|
if (index == (maxResults ?: 3) - 1) { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|