Fixed Nabi issues N_SE-49218, N_SE-49706
[apps/osp/Internet.git] / src / IntBookmarkListForm.cpp
index bdb34bf..8d92657 100644 (file)
@@ -1035,7 +1035,6 @@ BookmarkListForm::OnSearchBarModeChanged(Tizen::Ui::Controls::SearchBar& source,
                        r = __pSearchBar->SetContentAreaSize(Dimension(__pSearchListView->GetWidth(), __pSearchListView->GetHeight()));
                        __pSearchBar->SetText(L"");
                }
-               AppLog("OnSearchBarModeChanged SetContentAreaSize heihgt %d, %d",__pSearchListView->GetHeight() , GetClientAreaBounds().height - __pSearchBar->GetHeight());
                 __pListview->UpdateList();
                __pSearchListView->UpdateList();
        }
@@ -1167,8 +1166,14 @@ void
 BookmarkListForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus)
 {
        AppLog("BookmarkListForm::OnOrientationChanged start");
-       __pListview->SetBackgroundColor(GetBackgroundColor());
-       __pSearchListView->SetBackgroundColor(GetBackgroundColor());
+       if (__pListview)
+       {
+               __pListview->SetBackgroundColor(GetBackgroundColor());
+       }
+       if (__pSearchListView)
+       {
+               __pSearchListView->SetBackgroundColor(GetBackgroundColor());
+       }
        if (__pListview)
        {
                if(__pSearchBar->GetShowState())
@@ -1179,7 +1184,6 @@ BookmarkListForm::OnOrientationChanged (const Tizen::Ui::Control &source, Tizen:
                {
                        __pListview->SetBounds(__pListview->GetX(),0,GetClientAreaBounds().width ,GetClientAreaBounds().height);
                }
-               __pListview->UpdateList();
        }
 
        if (__pSearchListView && __pListview)