mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-20 11:15:02 +01:00
rename close poll to end poll in code
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
c3472de802
commit
06d9b6f886
@ -116,7 +116,7 @@ class PollResultsFragment : Fragment(), PollResultItemClickListener {
|
|||||||
.setTitle(R.string.polls_end_poll)
|
.setTitle(R.string.polls_end_poll)
|
||||||
.setMessage(R.string.polls_end_poll_confirm)
|
.setMessage(R.string.polls_end_poll_confirm)
|
||||||
.setPositiveButton(R.string.polls_end_poll) { _, _ ->
|
.setPositiveButton(R.string.polls_end_poll) { _, _ ->
|
||||||
parentViewModel.closePoll()
|
parentViewModel.endPoll()
|
||||||
}
|
}
|
||||||
.setNegativeButton(R.string.nc_cancel, null)
|
.setNegativeButton(R.string.nc_cancel, null)
|
||||||
.show()
|
.show()
|
||||||
|
@ -196,7 +196,7 @@ class PollVoteFragment : Fragment() {
|
|||||||
.setTitle(R.string.polls_end_poll)
|
.setTitle(R.string.polls_end_poll)
|
||||||
.setMessage(R.string.polls_end_poll_confirm)
|
.setMessage(R.string.polls_end_poll_confirm)
|
||||||
.setPositiveButton(R.string.polls_end_poll) { _, _ ->
|
.setPositiveButton(R.string.polls_end_poll) { _, _ ->
|
||||||
parentViewModel.closePoll()
|
parentViewModel.endPoll()
|
||||||
}
|
}
|
||||||
.setNegativeButton(R.string.nc_cancel, null)
|
.setNegativeButton(R.string.nc_cancel, null)
|
||||||
.show()
|
.show()
|
||||||
|
@ -101,7 +101,7 @@ class PollMainViewModel @Inject constructor(private val repository: PollReposito
|
|||||||
?.subscribe(PollObserver())
|
?.subscribe(PollObserver())
|
||||||
}
|
}
|
||||||
|
|
||||||
fun closePoll() {
|
fun endPoll() {
|
||||||
repository.closePoll(roomToken, pollId)
|
repository.closePoll(roomToken, pollId)
|
||||||
.doOnSubscribe { disposable = it }
|
.doOnSubscribe { disposable = it }
|
||||||
?.subscribeOn(Schedulers.io())
|
?.subscribeOn(Schedulers.io())
|
||||||
|
Loading…
Reference in New Issue
Block a user