Make ContentAvoidingLayoutData an immutable data class (#4999)

This commit is contained in:
Jorge Martin Espinosa 2025-07-08 18:26:18 +02:00 committed by GitHub
parent f09995965b
commit dc83abaec1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,12 +112,11 @@ fun ContentAvoidingLayout(
* @param nonOverlappingContentWidth The width of the part of the content that can't overlap with the timestamp.
* @param nonOverlappingContentHeight The height of the part of the content that can't overlap with the timestamp.
*/
@Suppress("DataClassShouldBeImmutable")
data class ContentAvoidingLayoutData(
var contentWidth: Int = 0,
var contentHeight: Int = 0,
var nonOverlappingContentWidth: Int = contentWidth,
var nonOverlappingContentHeight: Int = contentHeight,
val contentWidth: Int = 0,
val contentHeight: Int = 0,
val nonOverlappingContentWidth: Int = contentWidth,
val nonOverlappingContentHeight: Int = contentHeight,
)
/**