change: Remove copyWithCollapsed helper (#823)
Holdover from when Java interoperability was required.
This commit is contained in:
parent
e560868749
commit
b757765383
|
@ -114,7 +114,7 @@ class StatusDetailedViewHolder(
|
|||
) {
|
||||
// We never collapse statuses in the detail view
|
||||
val uncollapsedStatus =
|
||||
if (viewData.isCollapsible && viewData.isCollapsed) viewData.copyWithCollapsed(false) else viewData
|
||||
if (viewData.isCollapsible && viewData.isCollapsed) viewData.copy(isCollapsed = false) else viewData
|
||||
super.setupWithStatus(uncollapsedStatus, listener, statusDisplayOptions, payloads)
|
||||
setupCard(
|
||||
uncollapsedStatus,
|
||||
|
|
|
@ -195,9 +195,6 @@ data class StatusViewData(
|
|||
this.isCollapsible = shouldTrimStatus(this.content)
|
||||
}
|
||||
|
||||
/** Helper for Java */
|
||||
fun copyWithCollapsed(isCollapsed: Boolean) = copy(isCollapsed = isCollapsed)
|
||||
|
||||
companion object {
|
||||
fun from(
|
||||
status: Status,
|
||||
|
|
Loading…
Reference in New Issue