From 1e97187ef5aefc096e80663f13d77ef44c36be40 Mon Sep 17 00:00:00 2001 From: Kyle Corry Date: Sun, 5 Nov 2023 07:36:14 -0500 Subject: [PATCH] Use the updateLayoutParams extension --- .../tools/augmented_reality/AugmentedRealityFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/AugmentedRealityFragment.kt b/app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/AugmentedRealityFragment.kt index ceed0d47f..5e86b5d94 100644 --- a/app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/AugmentedRealityFragment.kt +++ b/app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/AugmentedRealityFragment.kt @@ -191,7 +191,7 @@ class AugmentedRealityFragment : BoundFragment( 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 }