summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Forms.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Forms.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Forms.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Forms.cs b/Xamarin.Forms.Platform.Tizen/Forms.cs
index 76571189..d9b73bf4 100644
--- a/Xamarin.Forms.Platform.Tizen/Forms.cs
+++ b/Xamarin.Forms.Platform.Tizen/Forms.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
+using Xamarin.Forms.Internals;
using ElmSharp;
using Tizen.Applications;
using TSystemInfo = Tizen.System.SystemInfo;
@@ -141,13 +142,13 @@ namespace Xamarin.Forms.Platform.Tizen
static void SetupInit(FormsApplication application)
{
- Color.Accent = GetAccentColor();
+ Color.SetAccent(GetAccentColor());
Context = application;
if (!IsInitialized)
{
- Xamarin.Forms.Log.Listeners.Add(new XamarinLogListener());
+ Internals.Log.Listeners.Add(new XamarinLogListener());
if (System.Threading.SynchronizationContext.Current == null)
{
TizenSynchronizationContext.Initialize();
@@ -186,19 +187,19 @@ namespace Xamarin.Forms.Platform.Tizen
string profile = ((TizenDeviceInfo)Device.Info).Profile;
if (profile == "mobile")
{
- Device.Idiom = TargetIdiom.Phone;
+ Device.SetIdiom(TargetIdiom.Phone);
}
else if (profile == "tv")
{
- Device.Idiom = TargetIdiom.TV;
+ Device.SetIdiom(TargetIdiom.TV);
}
else if (profile == "desktop")
{
- Device.Idiom = TargetIdiom.Desktop;
+ Device.SetIdiom(TargetIdiom.Desktop);
}
else
{
- Device.Idiom = TargetIdiom.Unsupported;
+ Device.SetIdiom(TargetIdiom.Unsupported);
}
ExpressionSearch.Default = new TizenExpressionSearch();