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

only init hockeyapp once

This commit is contained in:
Kyle Spearrin
2019-07-03 16:49:47 -04:00
parent a2dc73afef
commit fac9ae4b6c
3 changed files with 13 additions and 2 deletions

View File

@@ -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();
}