Skip to content

Commit

Permalink
Use the updateLayoutParams extension
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Nov 5, 2023
1 parent 6d018a2 commit 1e97187
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class AugmentedRealityFragment : BoundFragment<FragmentAugmentedRealityBinding>(
binding.arView.layoutParams =
FrameLayout.LayoutParams(size.width, size.height)
} else {
binding.arView.layoutParams = binding.arView.layoutParams.apply {
binding.arView.updateLayoutParams {
width = size.width
height = size.height
}
Expand Down

0 comments on commit 1e97187

Please sign in to comment.