mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +03:00
Fix Android build UT Failing because of precompiler directives. (#2991)
This commit is contained in:
parent
450101d9e4
commit
333917c00d
1 changed files with 4 additions and 0 deletions
|
@ -156,6 +156,10 @@ namespace Bit.App.Utilities
|
||||||
// MAUI Issue: https://github.com/dotnet/maui/issues/19614
|
// MAUI Issue: https://github.com/dotnet/maui/issues/19614
|
||||||
public static bool OsDarkModeEnabled()
|
public static bool OsDarkModeEnabled()
|
||||||
{
|
{
|
||||||
|
#if UT
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ANDROID
|
#if ANDROID
|
||||||
return Application.Current.RequestedTheme == AppTheme.Dark;
|
return Application.Current.RequestedTheme == AppTheme.Dark;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue