From c5bbfa53685359e0d57ea3144b734b208146992e Mon Sep 17 00:00:00 2001 From: ThomazFB Date: Thu, 30 Jan 2025 14:38:26 -0300 Subject: [PATCH] Add missing Woo Theme to WooShippingCustomsFormScreen --- .../customs/WooShippingCustomsFormFragment.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/customs/WooShippingCustomsFormFragment.kt b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/customs/WooShippingCustomsFormFragment.kt index e64a45e0428..de6af521ae7 100644 --- a/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/customs/WooShippingCustomsFormFragment.kt +++ b/WooCommerce/src/main/kotlin/com/woocommerce/android/ui/orders/wooshippinglabels/customs/WooShippingCustomsFormFragment.kt @@ -4,6 +4,7 @@ import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup +import androidx.compose.material.Surface import androidx.compose.ui.platform.ComposeView import androidx.compose.ui.platform.ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed import androidx.fragment.app.viewModels @@ -12,6 +13,7 @@ import com.woocommerce.android.R import com.woocommerce.android.extensions.handleDialogResult import com.woocommerce.android.extensions.navigateSafely import com.woocommerce.android.ui.base.BaseFragment +import com.woocommerce.android.ui.compose.theme.WooThemeWithBackground import com.woocommerce.android.ui.orders.wooshippinglabels.customs.WooShippingCustomsFormViewModel.ContentType import com.woocommerce.android.ui.orders.wooshippinglabels.customs.WooShippingCustomsFormViewModel.RestrictionType import com.woocommerce.android.ui.orders.wooshippinglabels.customs.WooShippingCustomsFormViewModel.ShowContentTypeDialog @@ -26,7 +28,11 @@ class WooShippingCustomsFormFragment : BaseFragment() { return ComposeView(requireContext()).apply { setViewCompositionStrategy(DisposeOnViewTreeLifecycleDestroyed) setContent { - WooShippingCustomsFormScreen(viewModel = viewModel) + WooThemeWithBackground { + Surface { + WooShippingCustomsFormScreen(viewModel = viewModel) + } + } } } }