From 0626a28c3ddd50a1ffe28838af67cc1fa274aab5 Mon Sep 17 00:00:00 2001 From: Iliyan Germanov Date: Fri, 29 Apr 2022 13:54:02 +0300 Subject: [PATCH] Fix previews --- app/src/main/java/com/ivy/wallet/ui/IvyComposeApp.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/ivy/wallet/ui/IvyComposeApp.kt b/app/src/main/java/com/ivy/wallet/ui/IvyComposeApp.kt index 321494ba8f..0cb46087ac 100644 --- a/app/src/main/java/com/ivy/wallet/ui/IvyComposeApp.kt +++ b/app/src/main/java/com/ivy/wallet/ui/IvyComposeApp.kt @@ -20,6 +20,7 @@ import com.ivy.design.l0_system.Theme import com.ivy.design.l0_system.UI import com.ivy.design.navigation.Navigation import com.ivy.design.utils.IvyPreview +import com.ivy.wallet.IvyAndroidApp @Composable @@ -59,6 +60,7 @@ fun IvyWalletPreview( theme: Theme = Theme.LIGHT, Content: @Composable BoxWithConstraintsScope.() -> Unit ) { + IvyAndroidApp.appContext = rootView().context IvyPreview( theme = theme, design = appDesign(IvyWalletCtx()),