From 85ea9ed6ef375a62c3243c16d87106d530f5c844 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 5 Aug 2016 00:23:48 -0400 Subject: [PATCH] continue for setup after pin if needed --- src/iOS.Extension/LoadingViewController.cs | 41 +++++++++++----------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/iOS.Extension/LoadingViewController.cs b/src/iOS.Extension/LoadingViewController.cs index 9f72a15ae..b6cfe35eb 100644 --- a/src/iOS.Extension/LoadingViewController.cs +++ b/src/iOS.Extension/LoadingViewController.cs @@ -114,18 +114,7 @@ namespace Bit.iOS.Extension PerformSegue("lockPasswordSegue", this); break; default: - if(_context.ProviderType == Constants.UTTypeAppExtensionSaveLoginAction) - { - PerformSegue("newSiteSegue", this); - } - else if(_context.ProviderType == Constants.UTTypeAppExtensionSetup) - { - PerformSegue("setupSegue", this); - } - else - { - PerformSegue("siteListSegue", this); - } + ContinueOn(); break; } } @@ -180,18 +169,28 @@ namespace Bit.iOS.Extension Debug.WriteLine("BW Log, Dismissing lock controller."); DismissViewController(false, () => { - Debug.WriteLine("BW Log, Segue to site add or list."); - if(_context.ProviderType == Constants.UTTypeAppExtensionSaveLoginAction) - { - PerformSegue("newSiteSegue", this); - } - else - { - PerformSegue("siteListSegue", this); - } + ContinueOn(); }); } + private void ContinueOn() + { + Debug.WriteLine("BW Log, Segue to setup, site add or list."); + + if(_context.ProviderType == Constants.UTTypeAppExtensionSaveLoginAction) + { + PerformSegue("newSiteSegue", this); + } + else if(_context.ProviderType == Constants.UTTypeAppExtensionSetup) + { + PerformSegue("setupSegue", this); + } + else + { + PerformSegue("siteListSegue", this); + } + } + public void CompleteUsernamePasswordRequest(string username, string password) { NSDictionary itemData = null;