mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-26 12:16:07 +01:00
only init hockeyapp once
This commit is contained in:
parent
a2dc73afef
commit
fac9ae4b6c
@ -102,6 +102,7 @@ namespace Bit.Core.Utilities
|
||||
{
|
||||
Inited = false;
|
||||
RegisteredServices.Clear();
|
||||
RegisteredServices = new Dictionary<string, object>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ namespace Bit.iOS.Autofill
|
||||
public partial class CredentialProviderViewController : ASCredentialProviderViewController
|
||||
{
|
||||
private Context _context;
|
||||
private bool _initedHockeyApp;
|
||||
|
||||
public CredentialProviderViewController(IntPtr handle)
|
||||
: base(handle)
|
||||
@ -251,7 +252,11 @@ namespace Bit.iOS.Autofill
|
||||
}
|
||||
iOSCoreHelpers.RegisterLocalServices();
|
||||
ServiceContainer.Init();
|
||||
iOSCoreHelpers.RegisterHockeyApp();
|
||||
if(!_initedHockeyApp)
|
||||
{
|
||||
iOSCoreHelpers.RegisterHockeyApp();
|
||||
_initedHockeyApp = true;
|
||||
}
|
||||
iOSCoreHelpers.Bootstrap();
|
||||
iOSCoreHelpers.AppearanceAdjustments();
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ namespace Bit.iOS.Extension
|
||||
public partial class LoadingViewController : ExtendedUIViewController
|
||||
{
|
||||
private Context _context = new Context();
|
||||
private bool _initedHockeyApp;
|
||||
|
||||
public LoadingViewController(IntPtr handle)
|
||||
: base(handle)
|
||||
@ -379,7 +380,11 @@ namespace Bit.iOS.Extension
|
||||
}
|
||||
iOSCoreHelpers.RegisterLocalServices();
|
||||
ServiceContainer.Init();
|
||||
iOSCoreHelpers.RegisterHockeyApp();
|
||||
if(!_initedHockeyApp)
|
||||
{
|
||||
iOSCoreHelpers.RegisterHockeyApp();
|
||||
_initedHockeyApp = true;
|
||||
}
|
||||
iOSCoreHelpers.Bootstrap();
|
||||
iOSCoreHelpers.AppearanceAdjustments();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user