1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-12 22:33:25 +00:00

reset service container from extensions

This commit is contained in:
Kyle Spearrin
2019-07-02 20:45:54 -04:00
parent 43e15bf911
commit abb39df547
2 changed files with 9 additions and 9 deletions

View File

@@ -99,6 +99,8 @@ namespace Bit.iOS.Autofill
public void CompleteRequest(string username = null, string password = null, string totp = null)
{
ServiceContainer.Reset();
if((_context?.Configuring ?? true) && string.IsNullOrWhiteSpace(password))
{
ExtensionContext?.CompleteExtensionConfigurationRequest();
@@ -243,15 +245,15 @@ namespace Bit.iOS.Autofill
private void InitApp()
{
iOSCoreHelpers.AppearanceAdjustments();
if(ServiceContainer.RegisteredServices.Count > 0)
{
return;
ServiceContainer.Reset();
}
iOSCoreHelpers.RegisterLocalServices();
ServiceContainer.Init();
iOSCoreHelpers.RegisterHockeyApp();
iOSCoreHelpers.Bootstrap();
iOSCoreHelpers.AppearanceAdjustments();
}
}
}