Fix for Mode locking issue
authorAyush <ayush.sriv@samsung.com>
Fri, 24 May 2013 05:02:43 +0000 (10:32 +0530)
committerAyush <ayush.sriv@samsung.com>
Fri, 24 May 2013 05:02:43 +0000 (10:32 +0530)
Change-Id: I15ff6ed30c72cd5ae1d9b4da8ad2d2bda9d5c12e
Signed-off-by: Ayush <ayush.sriv@samsung.com>
src/ui/controls/FUiCtrl_SearchBar.cpp

index d1b74a8..ae45a68 100644 (file)
@@ -580,6 +580,16 @@ _SearchBar::SetMode(SearchBarMode mode)
 result
 _SearchBar::SetModeLocked(bool modeLocked)
 {
+       if (modeLocked == true && GetMode() == SEARCH_BAR_MODE_NORMAL)
+       {
+               __pEdit->SetViewModeEnabled(true);
+       }
+
+       if (modeLocked == false && __pEdit->IsViewModeEnabled())
+       {
+               __pEdit->SetViewModeEnabled(false);
+       }
+
        return __pSearchBarPresenter->SetModeLocked(modeLocked);
 }