summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen
diff options
context:
space:
mode:
authorWonYoung Choi <wy80.choi@samsung.com>2017-02-27 22:23:22 +0900
committerWonYoung Choi <wy80.choi@samsung.com>2017-02-27 22:23:22 +0900
commit7936cb6f4564c5f543ad059d530c7b2fbaecb314 (patch)
treefa025520bddb783d7c9824deac57e262b0d42654 /Xamarin.Forms.Platform.Tizen
parentb42f8a2ce06084b0cde93b7761cccbf34ace9877 (diff)
downloadxamarin-forms-7936cb6f4564c5f543ad059d530c7b2fbaecb314.tar.gz
xamarin-forms-7936cb6f4564c5f543ad059d530c7b2fbaecb314.tar.bz2
xamarin-forms-7936cb6f4564c5f543ad059d530c7b2fbaecb314.zip
Create Window in OnPreCreate() instead of OnCreate()
OnPreCreate() method is called before OnCreate() always. If the Window is created in OnPreCreate(), User doesn't have to consider the call sequence of base.OnCreate() and LoadApplication() methods. Because the Window will be prepared before OnCreate() is called. Change-Id: I4c9f1e9507acc00850848274309409e884573e59
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rw-r--r--[-rwxr-xr-x]Xamarin.Forms.Platform.Tizen/FormsApplication.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
index 806f6a81..57efa3f6 100755..100644
--- a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
+++ b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
@@ -41,9 +41,9 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
- protected override void OnCreate()
+ protected override void OnPreCreate()
{
- base.OnCreate();
+ base.OnPreCreate();
Application.ClearCurrent();
CreateWindow();
}
@@ -93,7 +93,7 @@ namespace Xamarin.Forms.Platform.Tizen
{
if (null == MainWindow)
{
- throw new NullReferenceException("Call base OnCreate() method before loading the application.");
+ throw new NullReferenceException("MainWindow is not prepared. This method should be called in OnCreated().");
}
if (null == application)
{