Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 965daed

Browse files
authored
[Tizen] Fixed Tizen 4.0 regression issue (#12132)
1 parent 536ea6e commit 965daed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Xamarin.Forms.Platform.Tizen/FormsApplication.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using ElmSharp.Wearable;
1212
using Specific = Xamarin.Forms.PlatformConfiguration.TizenSpecific.Application;
1313
using Xamarin.Forms.Platform.Tizen.Native;
14+
using Tizen.Common;
1415

1516
namespace Xamarin.Forms.Platform.Tizen
1617
{
@@ -60,6 +61,12 @@ protected override void OnPreCreate()
6061
base.OnPreCreate();
6162
Application.ClearCurrent();
6263

64+
if (DotnetUtil.TizenAPIVersion < 5)
65+
{
66+
// We should set the env variable to support IsolatedStorageFile on tizen 4.0 or lower version.
67+
Environment.SetEnvironmentVariable("XDG_DATA_HOME", Current.DirectoryInfo.Data);
68+
}
69+
6370
var type = typeof(Window);
6471
// Use reflection to avoid breaking compatibility. ElmSharp.Window.CreateWindow() is has been added since API6.
6572
var methodInfo = type.GetMethod("CreateWindow", BindingFlags.NonPublic | BindingFlags.Static);

0 commit comments

Comments
 (0)