Add missing funtion that sets the rotation
authorjh5.cho <jh5.cho@samsung.com>
Fri, 4 Mar 2016 09:58:12 +0000 (18:58 +0900)
committerjh5.cho <jh5.cho@samsung.com>
Fri, 4 Mar 2016 09:58:15 +0000 (18:58 +0900)
  Add SetAutoRotation() function that sets the screen rotation status
  when the screen orientation is set to 'auto'

runtime/browser/web_application.cc

index b463cc5..cae57b1 100755 (executable)
@@ -283,6 +283,7 @@ bool WebApplication::Initialize() {
           wgt::parse::SettingInfo::ScreenOrientation::AUTO) {
     ewk_context_tizen_extensible_api_string_set(ewk_context_,
                                                 kRotationLockFeature, true);
+    window_->SetAutoRotation();
   } else if (app_data_->setting_info() != NULL &&
              app_data_->setting_info()->screen_orientation() ==
                  wgt::parse::SettingInfo::ScreenOrientation::PORTRAIT) {