Set option to user current location
This commit is contained in:
parent
edc77b0c17
commit
8f362d83cd
|
@ -133,7 +133,7 @@ class LocationSharingFragment @Inject constructor(
|
||||||
private fun initOptionsPicker() {
|
private fun initOptionsPicker() {
|
||||||
// TODO
|
// TODO
|
||||||
// change the options dynamically depending on the current chosen location
|
// change the options dynamically depending on the current chosen location
|
||||||
views.shareLocationOptionsPicker.setOptions(LocationSharingOption.PINNED)
|
views.shareLocationOptionsPicker.setOptions(LocationSharingOption.USER_CURRENT)
|
||||||
views.shareLocationOptionsPicker.optionPinned.debouncedClicks {
|
views.shareLocationOptionsPicker.optionPinned.debouncedClicks {
|
||||||
viewModel.handle(LocationSharingAction.OnShareLocation)
|
viewModel.handle(LocationSharingAction.OnShareLocation)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue