From bd760f93b48c6f64719d482292d77c596a75eebe Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 10 Apr 2017 20:28:52 +0200 Subject: [PATCH] =?UTF-8?q?fait=20du=20profile=20une=20r=C3=A9f=C3=A9rence?= =?UTF-8?q?=20r=C3=A9solue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZicMoove/ZicMoove.Droid/MainActivity.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ZicMoove/ZicMoove.Droid/MainActivity.cs b/ZicMoove/ZicMoove.Droid/MainActivity.cs index cc4cc127..2f3bc08a 100644 --- a/ZicMoove/ZicMoove.Droid/MainActivity.cs +++ b/ZicMoove/ZicMoove.Droid/MainActivity.cs @@ -51,6 +51,7 @@ namespace ZicMoove.Droid using Java.Math; using Org.Json; using Xamarin.Forms; + using ViewModels.UserProfile; [Activity( Name = Constants.ApplicationName + ".MainActivity", @@ -107,6 +108,7 @@ namespace ZicMoove.Droid { var xfapp = new XFormsCompatAppDroid(); this.SetIoc(xfapp); + } else { @@ -203,7 +205,8 @@ namespace ZicMoove.Droid .Register() .Register( t => new SQLiteSimpleCache(new SQLitePlatformAndroid(), - new SQLiteConnectionString(pathToDatabase, true), t.Resolve())); + new SQLiteConnectionString(pathToDatabase, true), t.Resolve())) + .RegisterSingle(); Resolver.SetResolver(resolverContainer.GetResolver()); return resolverContainer; }