Fix after rebase
This commit is contained in:
parent
a5d076a28a
commit
9b5fda2689
@ -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
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
@ -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
|
||||
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user