Fixed set brightness fail.
authorHokwon Song <hokwon.song@samsung.com>
Wed, 6 Nov 2013 09:50:13 +0000 (18:50 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Wed, 6 Nov 2013 09:50:13 +0000 (18:50 +0900)
Change-Id: I3e84348007c814993b71843f4022472c1cfe7498
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/system/FSys_PowerManagerStub.cpp

index 45bc393..a08b3f9 100644 (file)
@@ -176,9 +176,14 @@ _PowerManagerStub::OnRequestOccured(const ArrayList& request, ArrayList* respons
        if (__activeAppId.IsEmpty())
        {
                r = __pRegistry->GetValue(_POWER_MANAGER_REGISTRY_BRIGHTNESS_SECTION, _POWER_MANAGER_REGISTRY_ACTIVE_ID, __activeAppId);
-               SysTryCatch(NID_SYS, r == E_SUCCESS, r = E_SYSTEM, r,
-                       "It is failed to get the active id from registry");
-               SysLog(NID_SYS, "Get the active id from registry [%ls].", __activeAppId.GetPointer());
+               if (r == E_SUCCESS)
+               {
+                       SysLog(NID_SYS, "Get the active id from registry [%ls].", __activeAppId.GetPointer());
+               }
+               else
+               {
+                       SysLog(NID_SYS, "It is failed to get the active id from registry");
+               }
        }
 
        if (__command == _POWER_BRIGHTNESS_CHANGE)