summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-08-01 01:28:20 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:39 (GMT)
commit8bb9457af7bf13e7a172aad87544f64d794301bd (patch)
tree2d804d3c88a363c6050b3ee11ce75799050d0fd9
parentba1e535be00c66532bcdd3005d058b36e3b9ea66 (diff)
downloadxamarin-forms-8bb9457af7bf13e7a172aad87544f64d794301bd.zip
xamarin-forms-8bb9457af7bf13e7a172aad87544f64d794301bd.tar.gz
xamarin-forms-8bb9457af7bf13e7a172aad87544f64d794301bd.tar.bz2
Fix TabbedPage crash issue
- In some case, Layout callback was called before OnElementReady - In this case, children's renderer was not created. - So, we have to use GetOrCreateRenderer instead of GetRenderer Change-Id: I3e83a5e0820e85856235807aa266b6fbabc553e2
-rw-r--r--[-rwxr-xr-x]Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
index f0ff279..f01ee40 100755..100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
@@ -155,7 +155,7 @@ namespace Xamarin.Forms.Platform.Tizen
int index = 0;
foreach (var page in Element.Children)
{
- var nativeView = Platform.GetRenderer(page).NativeView;
+ var nativeView = Platform.GetOrCreateRenderer(page).NativeView;
bound.X = baseX + index * bound.Width;
nativeView.Geometry = bound;
index++;