From da1a7f6e6efce99d9992770b2b49082b0079f802 Mon Sep 17 00:00:00 2001 From: MatthewGerber Date: Thu, 27 Aug 2015 16:35:32 -0400 Subject: [PATCH] Fixed Android on-boot startup of Sensus. --- Sensus.Android/AndroidSensusService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sensus.Android/AndroidSensusService.cs b/Sensus.Android/AndroidSensusService.cs index bfa8bd7f1..4dfb5d9e2 100644 --- a/Sensus.Android/AndroidSensusService.cs +++ b/Sensus.Android/AndroidSensusService.cs @@ -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