@ -89,6 +89,7 @@ open class Location : RealmObject(), Savable, StaticRowRepresentableDataSource,
SimpleRow.NAME -> this.name = value as String? ?: ""
LocationRow.ADDRESS -> this.address = value as String? ?: ""
LocationRow.LOCATE_ME -> {
isLookingForPlaces = false
if (value is Place) {
setPlace(value)
}
@ -88,7 +88,6 @@ class EditableDataFragment : PokerAnalyticsFragment(), RowRepresentableDelegate,
when (row) {
(item as Location).isLookingForPlaces = false
rowRepresentableAdapter.notifyDataSetChanged()
else -> rowRepresentableAdapter.refreshRow(row)
@ -30,8 +30,12 @@ class PlacePickerManager {
val builder = AlertDialog.Builder(activity)
builder.setItems(placesArray.toTypedArray()) { _, which ->
delegate.onRowValueChanged(places[which].place, row)
}.setOnCancelListener {
delegate.onRowValueChanged(null, row)
builder.show()
} else {