mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 02:45:53 +03:00
Renaming picker view method
This commit is contained in:
parent
442d722980
commit
9adb87bdb4
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ class LocationSharingFragment @Inject constructor(
|
|||
private fun initOptionsPicker() {
|
||||
// TODO
|
||||
// change the options dynamically depending on the current chosen location
|
||||
views.shareLocationOptionsPicker.setOptions(LocationSharingOption.USER_CURRENT)
|
||||
views.shareLocationOptionsPicker.render(LocationSharingOption.USER_CURRENT)
|
||||
views.shareLocationOptionsPicker.optionPinned.debouncedClicks {
|
||||
viewModel.handle(LocationSharingAction.OnShareLocation)
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ class LocationSharingOptionPickerView @JvmOverloads constructor(
|
|||
applyBackground()
|
||||
}
|
||||
|
||||
fun setOptions(vararg options: LocationSharingOption) {
|
||||
fun render(vararg options: LocationSharingOption) {
|
||||
val optionsNumber = options.toSet().size
|
||||
val isPinnedVisible = options.contains(LocationSharingOption.PINNED)
|
||||
val isUserCurrentVisible = options.contains(LocationSharingOption.USER_CURRENT)
|
||||
|
|
Loading…
Reference in a new issue