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
|
// We never collapse statuses in the detail view
|
||||||
val uncollapsedStatus =
|
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)
|
super.setupWithStatus(uncollapsedStatus, listener, statusDisplayOptions, payloads)
|
||||||
setupCard(
|
setupCard(
|
||||||
uncollapsedStatus,
|
uncollapsedStatus,
|
||||||
|
|
|
@ -195,9 +195,6 @@ data class StatusViewData(
|
||||||
this.isCollapsible = shouldTrimStatus(this.content)
|
this.isCollapsible = shouldTrimStatus(this.content)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Helper for Java */
|
|
||||||
fun copyWithCollapsed(isCollapsed: Boolean) = copy(isCollapsed = isCollapsed)
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun from(
|
fun from(
|
||||||
status: Status,
|
status: Status,
|
||||||
|
|
Loading…
Reference in New Issue