Apply the workaround for fix the N_SE-37760. (Skip the SetCurrentForm if already...
authorSeungWon Lee <lsw2000.lee@samsung.com>
Wed, 8 May 2013 09:43:45 +0000 (18:43 +0900)
committerSeungWon Lee <lsw2000.lee@samsung.com>
Wed, 8 May 2013 09:43:45 +0000 (18:43 +0900)
Change-Id: Iff8214f800bf3b4470218fd5b8cfc4394fde7677
Signed-off-by: SeungWon Lee <lsw2000.lee@samsung.com>
src/ui/scenes/FUiScenes_SceneManagerImpl.cpp

index 2669334..74cb70c 100644 (file)
@@ -1537,8 +1537,16 @@ _SceneManagerImpl::SetCurrentForm(Form& form, bool useAnimator)
                SysLog(NID_UI_SCENES, "Safety operation ongoing. Animation may not working, Please check the problems!");
        }
 
-       r = pFrame->SetCurrentForm(form);
-       SysTryReturnResult(NID_UI_SCENES, !IsFailed(r), E_SYSTEM, "A system error has been occurred. Can not set current form.");
+       // Check the current Form, if already current one then skip the SetCurrentForm().
+       if (GetCurrentForm() == &form)
+       {
+               SysSecureLog(NID_UI_SCENES, "The Form already set as current form, skip the SetCurrentForm()");
+       }
+       else
+       {
+               r = pFrame->SetCurrentForm(form);
+               SysTryReturnResult(NID_UI_SCENES, !IsFailed(r), E_SYSTEM, "A system error has been occurred. Can not set current form.");
+       }
        return E_SUCCESS;
 }