Make ContentAvoidingLayoutData an immutable data class (#4999)
This commit is contained in:
parent
b2b79b71e5
commit
a6cfea3f05
1 changed files with 4 additions and 5 deletions
|
|
@ -112,12 +112,11 @@ fun ContentAvoidingLayout(
|
||||||
* @param nonOverlappingContentWidth The width of the part of the content that can't overlap with the timestamp.
|
* @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.
|
* @param nonOverlappingContentHeight The height of the part of the content that can't overlap with the timestamp.
|
||||||
*/
|
*/
|
||||||
@Suppress("DataClassShouldBeImmutable")
|
|
||||||
data class ContentAvoidingLayoutData(
|
data class ContentAvoidingLayoutData(
|
||||||
var contentWidth: Int = 0,
|
val contentWidth: Int = 0,
|
||||||
var contentHeight: Int = 0,
|
val contentHeight: Int = 0,
|
||||||
var nonOverlappingContentWidth: Int = contentWidth,
|
val nonOverlappingContentWidth: Int = contentWidth,
|
||||||
var nonOverlappingContentHeight: Int = contentHeight,
|
val nonOverlappingContentHeight: Int = contentHeight,
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue