removed obsolete cast
This commit is contained in:
parent
8314eb71c0
commit
ecd1776085
|
@ -21,7 +21,6 @@ import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import androidx.paging.PagedList
|
|
||||||
import com.airbnb.mvrx.fragmentViewModel
|
import com.airbnb.mvrx.fragmentViewModel
|
||||||
import dagger.hilt.android.AndroidEntryPoint
|
import dagger.hilt.android.AndroidEntryPoint
|
||||||
import im.vector.app.core.extensions.configureWith
|
import im.vector.app.core.extensions.configureWith
|
||||||
|
@ -75,8 +74,7 @@ class InvitesFragment : VectorBaseFragment<FragmentInvitesBinding>(), RoomListLi
|
||||||
when (it) {
|
when (it) {
|
||||||
is InvitesContentState.Content -> {
|
is InvitesContentState.Content -> {
|
||||||
views.invitesStateView.state = StateView.State.Content
|
views.invitesStateView.state = StateView.State.Content
|
||||||
Suppress("UNCHECKED_CAST")
|
controller.submitList(it.content)
|
||||||
controller.submitList(it.content as? PagedList<RoomSummary>)
|
|
||||||
}
|
}
|
||||||
is InvitesContentState.Empty -> {
|
is InvitesContentState.Empty -> {
|
||||||
views.invitesStateView.state = StateView.State.Empty(
|
views.invitesStateView.state = StateView.State.Empty(
|
||||||
|
|
Loading…
Reference in New Issue