Fixed jira issue and modified TableViewContextItem position
authorMyunkyu <mk70.kang@partner.samsung.com>
Fri, 19 Apr 2013 10:23:54 +0000 (19:23 +0900)
committerMyunkyu <mk70.kang@partner.samsung.com>
Fri, 19 Apr 2013 10:23:54 +0000 (19:23 +0900)
Change-Id: Ic72e41c0ed8d093f3cc1a02d7088029015fedcc6

src/MpAlbumListPanel.cpp
src/MpAllListPanel.cpp
src/MpArtistContentListForm.cpp
src/MpArtistListPanel.cpp
src/MpArtistListPresentationModel.cpp
src/MpCommonUtil.cpp
src/MpFolderListPanel.cpp
src/MpMusicPlayerPresentationModel.cpp
src/MpPlaylistListPanel.cpp

index e4ff43c..acb5a9a 100644 (file)
@@ -282,6 +282,10 @@ AlbumListPanel::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls
        if (activated == true)
        {
                __itemIndex = itemIndex;
+
+               pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
+               (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
+               pContextItem->Invalidate(true);
        }
        AppLogDebug("EXIT");
 }
index 709b966..14703a2 100644 (file)
@@ -503,6 +503,10 @@ AllListPanel::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Controls::
        if (activated == true)
        {
                __itemIndex = itemIndex;
+
+               pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
+               (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
+               pContextItem->Invalidate(true);
        }
        AppLogDebug("EXIT");
 }
index eeb5525..b7bbc87 100644 (file)
@@ -376,6 +376,10 @@ ArtistContentListForm::OnGroupedTableViewContextItemActivationStateChanged(Tizen
        {
                __activatedStateContextItem.__groupIndex = groupIndex;
                __activatedStateContextItem.__itemIndex = itemIndex;
+
+               pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
+               (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
+               pContextItem->Invalidate(true);
        }
        AppLogDebug("EXIT");
 }
index f8c6e35..4eb5a5f 100644 (file)
@@ -300,6 +300,10 @@ ArtistListPanel::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Control
        if (activated == true)
        {
                __itemIndex = itemIndex;
+
+               pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
+               (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
+               pContextItem->Invalidate(true);
        }
        AppLogDebug("EXIT");
 }
index f97efda..c954a6a 100644 (file)
@@ -400,9 +400,15 @@ ContentInformation*
 ArtistListPresentationModel::GetArtistAlbumContentInfoN(int contentIndex)
 {
        AppLogDebug("ENTER");
-       ContentSearchResult* pResult = static_cast<ContentSearchResult*>(__pArtistAlbumContentList->GetAt(contentIndex));
+       if (__pArtistAlbumContentList == null)
+       {
+               AppLogDebug("EXIT");
+               return null;
+       }
 
        ContentInformation* pContentInformation = null;
+       ContentSearchResult* pResult = static_cast<ContentSearchResult*>(__pArtistAlbumContentList->GetAt(contentIndex));
+
        if (pResult!= null && pResult->GetContentType() == CONTENT_TYPE_AUDIO)
        {
                pContentInformation = CommonUtil::GetContentInformationN(*static_cast<AudioContentInfo*>(pResult->GetContentInfo()));
index 17df1eb..64a582c 100644 (file)
@@ -777,23 +777,23 @@ CommonUtil::CreateTableViewContextItemN(Tizen::Ui::IActionEventListener& listene
        pTableViewContextItem->AddControl(*pItem);
        pTableViewContextItem->SetIndividualSelectionEnabled(pItem, true);
 
-       int controlCount = pItem->GetControlCount();
-       if (controlCount != INIT_VALUE)
-       {
-                Tizen::Ui::GridLayout* pGridLayout = dynamic_cast<Tizen::Ui::GridLayout*>(pItem->GetLandscapeLayoutN());
-                if (pGridLayout != null)
-                {
-                        int margin = 80;
-                        if (controlCount == 1)
-                        {
-                                margin = 106;
-                        }
-
-                        pGridLayout->SetColumnSpacing(controlCount, margin);
-                        pGridLayout->Update();
-                        delete pGridLayout;
-                }
-       }
+//     int controlCount = pItem->GetControlCount();
+//     if (controlCount != INIT_VALUE)
+//     {
+//              Tizen::Ui::GridLayout* pGridLayout = dynamic_cast<Tizen::Ui::GridLayout*>(pItem->GetLandscapeLayoutN());
+//              if (pGridLayout != null)
+//              {
+//                      int margin = 80;
+//                      if (controlCount == 1)
+//                      {
+//                              margin = 106;
+//                      }
+//
+//                      pGridLayout->SetColumnSpacing(controlCount, margin);
+//                      pGridLayout->Update();
+//                      delete pGridLayout;
+//              }
+//     }
        AppLogDebug("EXIT");
        return pTableViewContextItem;
 }
index 991da17..c425ec1 100644 (file)
@@ -266,6 +266,10 @@ FolderListPanel::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Control
        if (activated == true)
        {
                __itemIndex = itemIndex;
+
+               pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
+               (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
+               pContextItem->Invalidate(true);
        }
        AppLogDebug("EXIT");
 }
index fb9d639..dbb143d 100644 (file)
@@ -243,7 +243,7 @@ PlayerPresentationModel::OnTelephonyCallStatusChangedN(Tizen::Telephony::CallSta
 {
        AppLogDebug("ENTER");
        AppLogDebug("callStatus : %d", callStatus);
-       if (callStatus == CALL_STATUS_IDLE)
+       if (callStatus == CALL_STATUS_IDLE || callStatus == CALL_STATUS_COMMUNICATING)
        {
                CallOnPlayContentChanged(__currentContentIndex);
        }
index 9feb07e..bffaca3 100644 (file)
@@ -493,6 +493,12 @@ PlaylistListPanel::OnTableViewContextItemActivationStateChanged(Tizen::Ui::Contr
                AppLogDebug("EXIT");
                return;
        }
+       else
+       {
+               pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
+               (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
+               pContextItem->Invalidate(true);
+       }
        __selectedItemIndex = itemIndex;
        AppLogDebug("EXIT");
 }