[LocalContent] Change exception check because of the back button
authorSeokpil Park <seokpil.park@samsung.com>
Tue, 18 Jun 2013 07:44:07 +0000 (16:44 +0900)
committerSeokpil Park <seokpil.park@samsung.com>
Tue, 18 Jun 2013 07:44:10 +0000 (16:44 +0900)
Change-Id: I09821056b921da2ef43d689525a96c9adc5ea801
Signed-off-by: Seokpil Park <seokpil.park@samsung.com>
project/src/DetailForm.cpp
project/src/MainForm.cpp

index 7587c1f..0228627 100644 (file)
@@ -112,7 +112,7 @@ DetailForm::init(void)
        r = __pFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT);
        TryReturn(E_SUCCESS == r, r, "Footer::SetStyle() failed by %s.", GetErrorMessage(r));
        r = __pFooter->SetBackButton();
-       TryReturn(E_SUCCESS == r, r, "Footer::SetBackButton() failed by %s.", GetErrorMessage(r));
+       TryReturn(r == E_SUCCESS || r == E_UNSUPPORTED_OPERATION, r, "Footer::SetBackButton() failed by %s.", GetErrorMessage(r));
 
        __pFooter->AddActionEventListener(*this);
 
index c9be87e..4b014f7 100644 (file)
@@ -65,7 +65,7 @@ MainForm::OnInitializing(void)
                r = pFooter->SetStyle(FOOTER_STYLE_SEGMENTED_TEXT );
                TryReturn(E_SUCCESS == r, r, "pFooter->SetStyle failed by %s.", GetErrorMessage(r));
                r = pFooter->SetBackButton();
-               TryReturn(E_SUCCESS == r, r, "pFooter->SetBackButton failed by %s.", GetErrorMessage(r));
+               TryReturn(r == E_SUCCESS || r == E_UNSUPPORTED_OPERATION, r, "pFooter->SetBackButton failed by %s.", GetErrorMessage(r));
                SetFormBackEventListener(this);
        }