Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaturel committed Jan 5, 2023
1 parent a5d076a commit 9b5fda2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package im.vector.app.features.roomprofile.polls.ended

import dagger.hilt.android.AndroidEntryPoint
import im.vector.app.R
import im.vector.app.features.roomprofile.polls.RoomPollsFilter
import im.vector.app.features.roomprofile.polls.RoomPollsFilterType
import im.vector.app.features.roomprofile.polls.list.RoomPollsListFragment

@AndroidEntryPoint
Expand All @@ -28,7 +28,7 @@ class RoomEndedPollsFragment : RoomPollsListFragment() {
return getString(R.string.room_polls_ended_no_item)
}

override fun getRoomPollsFilter(): RoomPollsFilter {
return RoomPollsFilter.ENDED
override fun getRoomPollsFilter(): RoomPollsFilterType {
return RoomPollsFilterType.ENDED
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import im.vector.app.core.extensions.configureWith
import im.vector.app.core.platform.VectorBaseFragment
import im.vector.app.databinding.FragmentRoomPollsListBinding
import im.vector.app.features.roomprofile.polls.PollSummary
import im.vector.app.features.roomprofile.polls.RoomPollsFilter
import im.vector.app.features.roomprofile.polls.RoomPollsFilterType
import im.vector.app.features.roomprofile.polls.RoomPollsViewModel
import timber.log.Timber
import javax.inject.Inject
Expand All @@ -53,7 +53,7 @@ abstract class RoomPollsListFragment :

abstract fun getEmptyListTitle(): String

abstract fun getRoomPollsFilter(): RoomPollsFilter
abstract fun getRoomPollsFilter(): RoomPollsFilterType

private fun setupList() {
roomPollsController.listener = this
Expand All @@ -73,8 +73,8 @@ abstract class RoomPollsListFragment :

override fun invalidate() = withState(viewModel) { viewState ->
when (getRoomPollsFilter()) {
RoomPollsFilter.ACTIVE -> renderList(viewState.polls.filterIsInstance(PollSummary.ActivePoll::class.java))
RoomPollsFilter.ENDED -> renderList(viewState.polls.filterIsInstance(PollSummary.EndedPoll::class.java))
RoomPollsFilterType.ACTIVE -> renderList(viewState.polls.filterIsInstance(PollSummary.ActivePoll::class.java))
RoomPollsFilterType.ENDED -> renderList(viewState.polls.filterIsInstance(PollSummary.EndedPoll::class.java))
}
}

Expand Down

0 comments on commit 9b5fda2

Please sign in to comment.