From b697b85ab3afb7b2a25db6b77bde1f2664ea30e0 Mon Sep 17 00:00:00 2001 From: Choi Munseok Date: Fri, 12 Apr 2013 19:59:44 +0900 Subject: [PATCH] Fix the Ime Rotation Change-Id: I6e5fa3550772c6eec73a5a7fda200ea53f8eeca5 Signed-off-by: Choi Munseok --- src/ui/FUi_ImeOrientationAgent.cpp | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/ui/FUi_ImeOrientationAgent.cpp b/src/ui/FUi_ImeOrientationAgent.cpp index 797e1ef..a19857a 100644 --- a/src/ui/FUi_ImeOrientationAgent.cpp +++ b/src/ui/FUi_ImeOrientationAgent.cpp @@ -133,6 +133,27 @@ _ImeOrientationAgent::UpdateOrientation(int angle) int rotation = angle; + _RootVisualElement* pRootVisualElement = pRootWindow->GetRootVisualElement(); + if (!pRootVisualElement) + { + SysLog(NID_UI, "[Ime Rotation] The root visual element is null."); + return; + } + + _EflLayer* pLayer = static_cast<_EflLayer*>(pRootVisualElement->GetNativeLayer()); + if (!pLayer) + { + SysLog(NID_UI, "[Ime Rotation] The efl layer is null."); + return; + } + + Evas_Object* pWinObj = pLayer->GetElmWin(); + + if (pWinObj) + { + elm_win_rotation_with_resize_set(pWinObj, rotation); + } + OrientationStatus status = ORIENTATION_STATUS_NONE; switch (rotation) { @@ -154,27 +175,6 @@ _ImeOrientationAgent::UpdateOrientation(int angle) FireEvent(status); pImpl->Invalidate(true); - - _RootVisualElement* pRootVisualElement = pRootWindow->GetRootVisualElement(); - if (!pRootVisualElement) - { - SysLog(NID_UI, "[Ime Rotation] The root visual element is null."); - return; - } - - _EflLayer* pLayer = static_cast<_EflLayer*>(pRootVisualElement->GetNativeLayer()); - if (!pLayer) - { - SysLog(NID_UI, "[Ime Rotation] The efl layer is null."); - return; - } - - Evas_Object* pWinObj = pLayer->GetElmWin(); - - if (pWinObj) - { - elm_win_rotation_with_resize_set(pWinObj, rotation); - } } void -- 2.7.4