1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-26 12:16:07 +01:00

continue for setup after pin if needed

This commit is contained in:
Kyle Spearrin 2016-08-05 00:23:48 -04:00
parent 004812bb09
commit 85ea9ed6ef

View File

@ -114,18 +114,7 @@ namespace Bit.iOS.Extension
PerformSegue("lockPasswordSegue", this); PerformSegue("lockPasswordSegue", this);
break; break;
default: default:
if(_context.ProviderType == Constants.UTTypeAppExtensionSaveLoginAction) ContinueOn();
{
PerformSegue("newSiteSegue", this);
}
else if(_context.ProviderType == Constants.UTTypeAppExtensionSetup)
{
PerformSegue("setupSegue", this);
}
else
{
PerformSegue("siteListSegue", this);
}
break; break;
} }
} }
@ -180,18 +169,28 @@ namespace Bit.iOS.Extension
Debug.WriteLine("BW Log, Dismissing lock controller."); Debug.WriteLine("BW Log, Dismissing lock controller.");
DismissViewController(false, () => DismissViewController(false, () =>
{ {
Debug.WriteLine("BW Log, Segue to site add or list."); ContinueOn();
if(_context.ProviderType == Constants.UTTypeAppExtensionSaveLoginAction)
{
PerformSegue("newSiteSegue", this);
}
else
{
PerformSegue("siteListSegue", this);
}
}); });
} }
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) public void CompleteUsernamePasswordRequest(string username, string password)
{ {
NSDictionary itemData = null; NSDictionary itemData = null;