mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 18:55:05 +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)
|
||||
.setMessage(R.string.polls_end_poll_confirm)
|
||||
.setPositiveButton(R.string.polls_end_poll) { _, _ ->
|
||||
parentViewModel.closePoll()
|
||||
parentViewModel.endPoll()
|
||||
}
|
||||
.setNegativeButton(R.string.nc_cancel, null)
|
||||
.show()
|
||||
|
@ -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()
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user