From d8e87474789c874dde0695cda6e1aa9ed72d66e1 Mon Sep 17 00:00:00 2001 From: Federico Maccaroni Date: Fri, 1 Sep 2023 19:44:20 -0300 Subject: [PATCH] PM-3349 MAUI - Android - Fix Options page --- src/Maui/Bitwarden/Pages/Settings/OptionsPageViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Maui/Bitwarden/Pages/Settings/OptionsPageViewModel.cs b/src/Maui/Bitwarden/Pages/Settings/OptionsPageViewModel.cs index e393e420d..224cb6648 100644 --- a/src/Maui/Bitwarden/Pages/Settings/OptionsPageViewModel.cs +++ b/src/Maui/Bitwarden/Pages/Settings/OptionsPageViewModel.cs @@ -124,7 +124,7 @@ namespace Bit.App.Pages } } - public bool ShowAutoDarkThemeOptions => ThemeOptions[ThemeSelectedIndex].Key == null; + public bool ShowAutoDarkThemeOptions => ThemeSelectedIndex >= 0 ? ThemeOptions[ThemeSelectedIndex].Key == null : false; public int AutoDarkThemeSelectedIndex {