Skip to content
Permalink
Browse files

Merge pull request #334 from chrisbanes/cb/motionlayout-status

Use MotionLayout.updateState()
  • Loading branch information...
chrisbanes committed Jun 12, 2019
2 parents cd51608 + 73a4ffb commit f6b419900246cc46000fdc8cdddc644210ace584
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/src/main/java/app/tivi/extensions/MotionLayoutExtensions.kt
@@ -24,7 +24,6 @@ import androidx.constraintlayout.widget.ConstraintSet
*/
inline fun MotionLayout.updateConstraintSets(f: ConstraintSet.() -> Unit) {
for (id in constraintSetIds) {
getConstraintSet(id).f()
updateState(id, getConstraintSet(id).apply { f() })
}
rebuildScene()
}

0 comments on commit f6b4199

Please sign in to comment.
You can’t perform that action at this time.