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
|
var callback: Callback? = null
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomAliasViewState?) {
|
override fun buildModels(data: RoomAliasViewState?) {
|
||||||
data ?: return
|
data ?: return
|
||||||
|
|
||||||
|
|
|
@ -42,10 +42,6 @@ class RoomBannedMemberListController @Inject constructor(
|
||||||
|
|
||||||
var callback: Callback? = null
|
var callback: Callback? = null
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomBannedMemberListViewState?) {
|
override fun buildModels(data: RoomBannedMemberListViewState?) {
|
||||||
val bannedList = data?.bannedMemberSummaries?.invoke() ?: return
|
val bannedList = data?.bannedMemberSummaries?.invoke() ?: return
|
||||||
val host = this
|
val host = this
|
||||||
|
|
|
@ -49,10 +49,6 @@ class RoomMemberListController @Inject constructor(
|
||||||
|
|
||||||
var callback: Callback? = null
|
var callback: Callback? = null
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomMemberListViewState?) {
|
override fun buildModels(data: RoomMemberListViewState?) {
|
||||||
data ?: return
|
data ?: return
|
||||||
val host = this
|
val host = this
|
||||||
|
|
|
@ -34,10 +34,6 @@ class RoomNotificationSettingsController @Inject constructor() : TypedEpoxyContr
|
||||||
|
|
||||||
var callback: Callback? = null
|
var callback: Callback? = null
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomNotificationSettingsViewState?) {
|
override fun buildModels(data: RoomNotificationSettingsViewState?) {
|
||||||
val host = this
|
val host = this
|
||||||
data ?: return
|
data ?: return
|
||||||
|
|
|
@ -108,10 +108,6 @@ class RoomPermissionsController @Inject constructor(
|
||||||
EditablePermission.UpgradeTheRoom()
|
EditablePermission.UpgradeTheRoom()
|
||||||
)
|
)
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomPermissionsViewState?) {
|
override fun buildModels(data: RoomPermissionsViewState?) {
|
||||||
val host = this
|
val host = this
|
||||||
buildProfileSection(
|
buildProfileSection(
|
||||||
|
|
|
@ -56,10 +56,6 @@ class RoomSettingsController @Inject constructor(
|
||||||
|
|
||||||
var callback: Callback? = null
|
var callback: Callback? = null
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomSettingsViewState?) {
|
override fun buildModels(data: RoomSettingsViewState?) {
|
||||||
val roomSummary = data?.roomSummary?.invoke() ?: return
|
val roomSummary = data?.roomSummary?.invoke() ?: return
|
||||||
val host = this
|
val host = this
|
||||||
|
|
|
@ -43,10 +43,6 @@ class UploadsFileController @Inject constructor(
|
||||||
|
|
||||||
private var idx = 0
|
private var idx = 0
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomUploadsViewState?) {
|
override fun buildModels(data: RoomUploadsViewState?) {
|
||||||
data ?: return
|
data ?: return
|
||||||
val host = this
|
val host = this
|
||||||
|
|
|
@ -54,10 +54,6 @@ class UploadsMediaController @Inject constructor(
|
||||||
|
|
||||||
private val itemSize = dimensionConverter.dpToPx(IMAGE_SIZE_DP)
|
private val itemSize = dimensionConverter.dpToPx(IMAGE_SIZE_DP)
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomUploadsViewState?) {
|
override fun buildModels(data: RoomUploadsViewState?) {
|
||||||
data ?: return
|
data ?: return
|
||||||
val host = this
|
val host = this
|
||||||
|
|
|
@ -50,10 +50,6 @@ class SpacePeopleListController @Inject constructor(
|
||||||
|
|
||||||
var listener: InteractionListener? = null
|
var listener: InteractionListener? = null
|
||||||
|
|
||||||
init {
|
|
||||||
setData(null)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun buildModels(data: RoomMemberListViewState?) {
|
override fun buildModels(data: RoomMemberListViewState?) {
|
||||||
val host = this
|
val host = this
|
||||||
val memberSummaries = data?.roomMemberSummaries?.invoke()
|
val memberSummaries = data?.roomMemberSummaries?.invoke()
|
||||||
|
|
Loading…
Reference in a new issue