rename close poll to end poll in code

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-07-22 16:28:48 +02:00 committed by Andy Scherzinger (Rebase PR Action)
parent c3472de802
commit 06d9b6f886
3 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ class PollResultsFragment : Fragment(), PollResultItemClickListener {
.setTitle(R.string.polls_end_poll)
.setMessage(R.string.polls_end_poll_confirm)
.setPositiveButton(R.string.polls_end_poll) { _, _ ->
parentViewModel.closePoll()
parentViewModel.endPoll()
}
.setNegativeButton(R.string.nc_cancel, null)
.show()

View File

@ -196,7 +196,7 @@ class PollVoteFragment : Fragment() {
.setTitle(R.string.polls_end_poll)
.setMessage(R.string.polls_end_poll_confirm)
.setPositiveButton(R.string.polls_end_poll) { _, _ ->
parentViewModel.closePoll()
parentViewModel.endPoll()
}
.setNegativeButton(R.string.nc_cancel, null)
.show()

View File

@ -101,7 +101,7 @@ class PollMainViewModel @Inject constructor(private val repository: PollReposito
?.subscribe(PollObserver())
}
fun closePoll() {
fun endPoll() {
repository.closePoll(roomToken, pollId)
.doOnSubscribe { disposable = it }
?.subscribeOn(Schedulers.io())