From 333917c00d273b0212bcaef64ab950cf92eb8e30 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Mon, 12 Feb 2024 11:34:43 -0300 Subject: [PATCH] Fix Android build UT Failing because of precompiler directives. (#2991) --- src/Core/Utilities/ThemeManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/Utilities/ThemeManager.cs b/src/Core/Utilities/ThemeManager.cs index ea4252e09..47475c3c4 100644 --- a/src/Core/Utilities/ThemeManager.cs +++ b/src/Core/Utilities/ThemeManager.cs @@ -156,6 +156,10 @@ namespace Bit.App.Utilities // MAUI Issue: https://github.com/dotnet/maui/issues/19614 public static bool OsDarkModeEnabled() { +#if UT + return false; +#endif + #if ANDROID return Application.Current.RequestedTheme == AppTheme.Dark; #else