Fix screen_orientation issue in wearable profile 71/103071/2 accepted/tizen/3.0/common/20161207.195554 accepted/tizen/3.0/ivi/20161207.135513 accepted/tizen/3.0/mobile/20161207.135431 accepted/tizen/3.0/tv/20161207.135306 accepted/tizen/3.0/wearable/20161207.135519 submit/tizen_3.0/20161207.072642
authormin7.choi <min7.choi@samsung.com>
Wed, 7 Dec 2016 07:06:37 +0000 (16:06 +0900)
committermin7.choi <min7.choi@samsung.com>
Wed, 7 Dec 2016 07:13:42 +0000 (16:13 +0900)
Change-Id: I5459be72dc0984114f4b6dd2a3f56baae90063bf
Signed-off-by: min7.choi <min7.choi@samsung.com>
runtime/browser/native_window.cc

index 5712dff..3dbff5e 100755 (executable)
@@ -174,11 +174,19 @@ void NativeWindow::Initialize() {
                                  rotation_callback,
                                  this);
 
+#ifdef PROFILE_WEARABLE
+  if (w >= h) {
+    natural_orientation_ = ScreenOrientation::LANDSCAPE_PRIMARY;
+  } else {
+    natural_orientation_ = ScreenOrientation::PORTRAIT_PRIMARY;
+  }
+#else
   if (w > h) {
     natural_orientation_ = ScreenOrientation::LANDSCAPE_PRIMARY;
   } else {
     natural_orientation_ = ScreenOrientation::PORTRAIT_PRIMARY;
   }
+#endif
 
   elm_win_indicator_mode_set(window_, ELM_WIN_INDICATOR_SHOW);