change: Remove copyWithCollapsed helper (#823)

Holdover from when Java interoperability was required.
This commit is contained in:
Nik Clayton 2024-07-15 00:00:36 +02:00 committed by GitHub
parent e560868749
commit b757765383
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View File

@ -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,

View File

@ -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,