Skip to content

Commit

Permalink
Fixed Android on-boot startup of Sensus.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewGerber committed Aug 27, 2015
1 parent d0894e8 commit da1a7f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sensus.Android/AndroidSensusService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public override void OnCreate()
{
base.OnCreate();

SensusServiceHelper.Initialize(() => new AndroidSensusServiceHelper());

_serviceHelper = SensusServiceHelper.Get() as AndroidSensusServiceHelper;

// it's happened that the service is created after the service helper is disposed: https://insights.xamarin.com/app/Sensus-Production/issues/46
Expand Down

0 comments on commit da1a7f6

Please sign in to comment.