mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 21:48:50 +03:00
Remove some other not needed setData(null) in controllers
This commit is contained in:
parent
7fedcbb998
commit
f8f5e7ecd3
9 changed files with 0 additions and 36 deletions
|
@ -63,10 +63,6 @@ class RoomAliasController @Inject constructor(
|
|||
|
||||
var callback: Callback? = null
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomAliasViewState?) {
|
||||
data ?: return
|
||||
|
||||
|
|
|
@ -42,10 +42,6 @@ class RoomBannedMemberListController @Inject constructor(
|
|||
|
||||
var callback: Callback? = null
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomBannedMemberListViewState?) {
|
||||
val bannedList = data?.bannedMemberSummaries?.invoke() ?: return
|
||||
val host = this
|
||||
|
|
|
@ -49,10 +49,6 @@ class RoomMemberListController @Inject constructor(
|
|||
|
||||
var callback: Callback? = null
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomMemberListViewState?) {
|
||||
data ?: return
|
||||
val host = this
|
||||
|
|
|
@ -34,10 +34,6 @@ class RoomNotificationSettingsController @Inject constructor() : TypedEpoxyContr
|
|||
|
||||
var callback: Callback? = null
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomNotificationSettingsViewState?) {
|
||||
val host = this
|
||||
data ?: return
|
||||
|
|
|
@ -108,10 +108,6 @@ class RoomPermissionsController @Inject constructor(
|
|||
EditablePermission.UpgradeTheRoom()
|
||||
)
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomPermissionsViewState?) {
|
||||
val host = this
|
||||
buildProfileSection(
|
||||
|
|
|
@ -56,10 +56,6 @@ class RoomSettingsController @Inject constructor(
|
|||
|
||||
var callback: Callback? = null
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomSettingsViewState?) {
|
||||
val roomSummary = data?.roomSummary?.invoke() ?: return
|
||||
val host = this
|
||||
|
|
|
@ -43,10 +43,6 @@ class UploadsFileController @Inject constructor(
|
|||
|
||||
private var idx = 0
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomUploadsViewState?) {
|
||||
data ?: return
|
||||
val host = this
|
||||
|
|
|
@ -54,10 +54,6 @@ class UploadsMediaController @Inject constructor(
|
|||
|
||||
private val itemSize = dimensionConverter.dpToPx(IMAGE_SIZE_DP)
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomUploadsViewState?) {
|
||||
data ?: return
|
||||
val host = this
|
||||
|
|
|
@ -50,10 +50,6 @@ class SpacePeopleListController @Inject constructor(
|
|||
|
||||
var listener: InteractionListener? = null
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomMemberListViewState?) {
|
||||
val host = this
|
||||
val memberSummaries = data?.roomMemberSummaries?.invoke()
|
||||
|
|
Loading…
Reference in a new issue