|
|
|
|
@ -69,12 +69,12 @@ class EditableDataFragment : PokerAnalyticsFragment(), RowRepresentableDelegate, |
|
|
|
|
|
|
|
|
|
override fun onRowSelected(position: Int, row: RowRepresentable, fromAction: Boolean) { |
|
|
|
|
when (row) { |
|
|
|
|
LocationRow.LOCATE_ME -> PlacePickerManager.create(parentActivity, row, this) |
|
|
|
|
else -> { |
|
|
|
|
BottomSheetFragment.create( |
|
|
|
|
fragmentManager, row, this, (this.item as RowRepresentableDataSource).editDescriptors(row) |
|
|
|
|
) |
|
|
|
|
LocationRow.LOCATE_ME -> { |
|
|
|
|
(item as Location).isLookingForPlaces = true |
|
|
|
|
PlacePickerManager.create(parentActivity, row, this) |
|
|
|
|
rowRepresentableAdapter.refreshRow(row) |
|
|
|
|
} |
|
|
|
|
else -> BottomSheetFragment.create(fragmentManager, row, this, (this.item as RowRepresentableDataSource).editDescriptors(row)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -87,7 +87,10 @@ class EditableDataFragment : PokerAnalyticsFragment(), RowRepresentableDelegate, |
|
|
|
|
(this.item as Savable).updateValue(value, row) |
|
|
|
|
} |
|
|
|
|
when (row) { |
|
|
|
|
LocationRow.LOCATE_ME -> rowRepresentableAdapter.notifyDataSetChanged() |
|
|
|
|
LocationRow.LOCATE_ME -> { |
|
|
|
|
(item as Location).isLookingForPlaces = false |
|
|
|
|
rowRepresentableAdapter.notifyDataSetChanged() |
|
|
|
|
} |
|
|
|
|
else -> rowRepresentableAdapter.refreshRow(row) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|