Fixed JIRA issue(56886) tizen_2.2 2.2.1_release submit/tizen_2.2/20131107.055214 submit/tizen_2.2/20131107.081525 submit/tizen_2.2/20131107.135300
authorMahesh Krishna Nagabhushan <mahesh.kn@samsung.com>
Thu, 31 Oct 2013 09:55:11 +0000 (15:25 +0530)
committerMahesh Krishna Nagabhushan <mahesh.kn@samsung.com>
Thu, 31 Oct 2013 09:55:11 +0000 (15:25 +0530)
Change-Id: Ie3f4122a7b7c6d22975295f245aa7d779b63daa8
Signed-off-by: Mahesh Krishna Nagabhushan <mahesh.kn@samsung.com>
inc/MmListForm.h
src/MmListForm.cpp

index 852b3b9..eb6789e 100755 (executable)
@@ -151,6 +151,7 @@ private:
        Tizen::Base::String*                    __pDrawingFileName;
        Tizen::Base::String                                     __dateTimeFormat;
        int                                                             __sortType;
+       bool                                                            __isKeypadManuallyClosed;
 };
 
 #endif  /* _MM_LIST_FORM_H_ */
index 2a54bc0..15d6171 100644 (file)
@@ -63,6 +63,7 @@ MemoListForm::MemoListForm(void)
        , __pOption(null)
        , __pDrawingFileName(null)
        , __sortType(0)
+       , __isKeypadManuallyClosed(false)
 {
        __pVMemoCreator = new (std::nothrow) VMemoCreator();
        __pAppControlListProvider = new (std::nothrow) AppControlListProvider();
@@ -129,7 +130,7 @@ MemoListForm::OnInitializing(void)
        __pMemoListView->SetSweepEnabled(true);
        __pMemoListView->AddListViewItemEventListener(*this);
        __pMemoListView->SetTextOfEmptyList(GetResourceString(L"IDS_MEMO_BODY_NO_MEMOS"));
-       __pMemoListView->SetTextColorOfEmptyList(Color::GetColor(COLOR_ID_GREY));
+       __pMemoListView->SetTextColorOfEmptyList(Color(128,128,128));
        __pMemoListView->SetShowState(false);
        __pSearchBar->SetContent(__pMemoListView);
 
@@ -781,6 +782,7 @@ MemoListForm::OnKeypadActionPerformed(Control& source, KeypadAction keypadAction
 {
        if (keypadAction == KEYPAD_ACTION_SEARCH)
        {
+               __isKeypadManuallyClosed = true;
                __pSearchBar->HideKeypad();
        }
        return;
@@ -802,6 +804,7 @@ MemoListForm::OnKeypadOpened(Tizen::Ui::Control& source)
 {
        __pMemoListView->UpdateList();
        __isKeypadOpened = true;
+       __isKeypadManuallyClosed = false;
 }
 
 void
@@ -895,6 +898,6 @@ MemoListForm::OnSettingChanged(Tizen::Base::String& key)
 void
 MemoListForm::ShowSearchKeypad()
 {
-       if (__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT)
+       if (__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT && __isKeypadManuallyClosed == false)
                __pSearchBar->ShowKeypad();
 }
\ No newline at end of file