We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 249a228 commit 1d12b2dCopy full SHA for 1d12b2d
loadingstateview/src/main/java/com/dylanc/loadingstateview/LoadingStateView.kt
@@ -110,7 +110,9 @@ class LoadingStateView @JvmOverloads constructor(
110
111
private fun DecorViewDelegate.createDecorView() =
112
onCreateDecorView(LayoutInflater.from(contentView.context)).also { decorView ->
113
- contentView.layoutParams?.let { decorView.layoutParams = it }
+ contentView.layoutParams?.let {
114
+ decorView.layoutParams = if (it is ConstraintLayout.LayoutParams) ConstraintLayout.LayoutParams(it) else it
115
+ }
116
}
117
118
/**
0 commit comments