1
0
mirror of https://github.com/bitwarden/mobile synced 2024-12-23 15:34:01 +01:00

Fix Android build UT Failing because of precompiler directives. (#2991)

This commit is contained in:
Federico Maccaroni 2024-02-12 11:34:43 -03:00 committed by GitHub
parent 450101d9e4
commit 333917c00d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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