diff options
author | rina6350.you <rina6350.you@samsung.com> | 2017-05-30 15:55:27 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-07-10 11:11:26 +0900 |
commit | 30905150de33a4ff833a68cee99f9ae5912692d5 (patch) | |
tree | e3d9d1c22a338a90b3e9a5802fe3c3afc06d6885 /Xamarin.Forms.Platform.Tizen | |
parent | 84426903b24c0ed92c61eae85842c78473892f25 (diff) | |
download | xamarin-forms-30905150de33a4ff833a68cee99f9ae5912692d5.tar.gz xamarin-forms-30905150de33a4ff833a68cee99f9ae5912692d5.tar.bz2 xamarin-forms-30905150de33a4ff833a68cee99f9ae5912692d5.zip |
Prevent the bug by setting invalid value
Change-Id: I3b7015d60332d591f697ceaf4058aa30852482ce
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rwxr-xr-x | Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs index bd891025..4ca3e778 100755 --- a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs @@ -141,8 +141,12 @@ namespace Xamarin.Forms.Platform.Tizen protected override void UpdateThemeStyle() { - _toolbar.Style = Element.OnThisPlatform().GetStyle(); - ((IVisualElementController)Element).NativeSizeChanged(); + var style = Element.OnThisPlatform().GetStyle(); + if (!string.IsNullOrEmpty(style)) + { + _toolbar.Style = style; + ((IVisualElementController)Element).NativeSizeChanged(); + } } void UpdateTitle() |