From 779595da70a2a00d9d2e3d889d09b97da435c636 Mon Sep 17 00:00:00 2001 From: Choi Munseok Date: Fri, 12 Apr 2013 00:12:30 +0900 Subject: [PATCH] Fix Ime Rotation Change-Id: I42c4a6f4e3403b9b95bfa0a0101b8fa4e988a3a4 Signed-off-by: Choi Munseok --- src/ui/controls/FUiCtrl_FormImpl.cpp | 2 +- src/ui/controls/FUiCtrl_Frame.cpp | 4 ++-- src/ui/controls/FUiCtrl_FrameImpl.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/controls/FUiCtrl_FormImpl.cpp b/src/ui/controls/FUiCtrl_FormImpl.cpp index cad1b86..30b77d3 100644 --- a/src/ui/controls/FUiCtrl_FormImpl.cpp +++ b/src/ui/controls/FUiCtrl_FormImpl.cpp @@ -109,7 +109,7 @@ _FormImpl::_FormImpl(Form* pPublic, _Form* pCore, Layout* pPublicPortraitLayout, __pForm = pCore; int appType = _AppInfo::GetAppType(); - if (appType == _APP_TYPE_IME_APP) + if (appType & _APP_TYPE_IME_APP) { __pImeOriAgent = _ImeOrientationAgent::CreateInstanceN(*pPublic); SysTryReturnVoidResult(NID_UI_CTRL, __pImeOriAgent != null, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult())); diff --git a/src/ui/controls/FUiCtrl_Frame.cpp b/src/ui/controls/FUiCtrl_Frame.cpp index 0c6c7af..b10d247 100644 --- a/src/ui/controls/FUiCtrl_Frame.cpp +++ b/src/ui/controls/FUiCtrl_Frame.cpp @@ -113,7 +113,7 @@ _Frame::CreateFrameN(void) SysTryCatch(NID_UI_CTRL, pFrame, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory shortage."); SysTryCatch(NID_UI_CTRL, GetLastResult() == E_SUCCESS, , E_SYSTEM, "[E_SYSTEM] A system error occurred."); - if (appType == _APP_TYPE_IME_APP) + if (appType & _APP_TYPE_IME_APP) { SysLog(NID_UI_CTRL, "[Ime Rotation]"); r = pFrame->CreateRootVisualElement(_WINDOW_TYPE_SUB); @@ -635,7 +635,7 @@ result _Frame::OnBoundsChanging(const FloatRectangle& bounds) { int appType = _AppInfo::GetAppType(); - if (appType == _APP_TYPE_IME_APP) + if (appType & _APP_TYPE_IME_APP) { SysLog(NID_UI_CTRL, "[Ime Rotation]"); return E_SUCCESS; diff --git a/src/ui/controls/FUiCtrl_FrameImpl.cpp b/src/ui/controls/FUiCtrl_FrameImpl.cpp index b8b9d18..c4a02a8 100644 --- a/src/ui/controls/FUiCtrl_FrameImpl.cpp +++ b/src/ui/controls/FUiCtrl_FrameImpl.cpp @@ -93,7 +93,7 @@ _FrameImpl::_FrameImpl(Frame* pPublic, _Frame* pCore) SysTryReturnVoidResult(NID_UI_CTRL, __pFrameEvent, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult())); int appType = _AppInfo::GetAppType(); - if (appType == _APP_TYPE_IME_APP) + if (appType & _APP_TYPE_IME_APP) { __pImeOrientationAgent = _ImeOrientationAgent::CreateInstanceN(*pPublic); SysTryCatch(NID_UI_CTRL, __pImeOrientationAgent != null, , GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult())); -- 2.7.4