[A] Fix insights api key access for Legacy Android
authorE.Z. Hart <hartez@gmail.com>
Wed, 23 Mar 2016 21:07:26 +0000 (15:07 -0600)
committerE.Z. Hart <hartez@gmail.com>
Wed, 23 Mar 2016 21:07:26 +0000 (15:07 -0600)
Xamarin.Forms.ControlGallery.Android/Activity1.cs

index 3426ce2..9dbd4b6 100644 (file)
@@ -188,7 +188,7 @@ namespace Xamarin.Forms.ControlGallery.Android
                        base.OnCreate(bundle);
 
                        if (!Debugger.IsAttached)
-                               Insights.Initialize(App.InsightsApiKey, this.ApplicationContext);
+                               Insights.Initialize(App.Secrets["InsightsApiKey"], this.ApplicationContext);
 
                        Forms.Init(this, bundle);
                        FormsMaps.Init(this, bundle);