summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs')
-rw-r--r--[-rwxr-xr-x]Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs b/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs
index e7e1f243..68260732 100755..100644
--- a/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs
+++ b/Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs
@@ -295,10 +295,10 @@ namespace Xamarin.Forms.Platform.Tizen.Native
if (behavior == MasterBehavior.SplitOnLandscape ||
behavior == MasterBehavior.SplitOnPortrait)
{
- var orientation = Forms.Context.MainWindow.CurrentOrientation;
+ var rotation = Forms.Context.MainWindow.Rotation;
- if (((orientation == DisplayOrientations.Landscape || orientation == DisplayOrientations.LandscapeFlipped) && behavior == MasterBehavior.SplitOnLandscape) ||
- ((orientation == DisplayOrientations.Portrait || orientation == DisplayOrientations.PortraitFlipped) && behavior == MasterBehavior.SplitOnPortrait))
+ if (((rotation == 90 || rotation == 270) && behavior == MasterBehavior.SplitOnLandscape) ||
+ ((rotation == 0 || rotation == 90) && behavior == MasterBehavior.SplitOnPortrait))
{
behavior = MasterBehavior.Split;
}