private void InitNavigation(bool shouldUsePin) { _themeSwitchService.InitializeTheme(); _themeService.SetStatusBarColor((Color)Current.Resources["StatusBar"]); if (shouldUsePin) { _navigationService.ToRootAsync <PinViewModel>(); } else { _navigationService.ToRootAsync <LoginViewModel>(); } }
private async Task InitNavigation(bool shouldUsePin) { _themeSwitchService.InitializeTheme(); _themeService.SetStatusBarColor((Color)Current.Resources["StatusBar"]); if (shouldUsePin && !string.IsNullOrEmpty(Settings.UserPinCode)) { await _navigationService.ToRootAsync <PinViewModel>(); } else { await _navigationService.ToRootAsync <LoginViewModel>(); } }