return;
}
+ int albumIndex = __pPresentationModel->GetAlbumIndex();
+ int songIndex = __pPresentationModel->GetSongIndex();
+
ContentInformation* pContentInfo;
SceneManager* pSceneManager = SceneManager::GetInstance();
AppAssert(pSceneManager);
- if (itemIndex < __pPresentationModel->GetAlbumIndex())
+ if (songIndex != -1 && itemIndex > songIndex) //song result
{
pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
+ ArrayList* pPath = new (std::nothrow) ArrayList();
+ pPath->Construct();
+ pPath->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
ArrayList* pData = new (std::nothrow) ArrayList();
pData->Construct();
- pData->Add(*(new (std::nothrow) String(IDSCN_ARTIST_LIST)));
- pData->Add(*(new (std::nothrow) String(pContentInfo->ArtistName)));
+ pData->Add(*(new (std::nothrow) String(MUSIC)));
+ pData->Add(*(new (std::nothrow) Integer(0)));
+ pData->Add(*(pPath));
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ARTIST_CONTENT_LIST), pData);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), pData);
}
- else if (itemIndex < __pPresentationModel->GetSongIndex())
+ else if (albumIndex != -1 && itemIndex > albumIndex)//album item
{
pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_CONTENT_LIST), pData);
}
- else
+// if (itemIndex < __pPresentationModel->GetAlbumIndex())
+ else//artist item
{
pContentInfo = __pPresentationModel->GetContentInfoN(itemIndex);
- ArrayList* pPath = new (std::nothrow) ArrayList();
- pPath->Construct();
- pPath->Add(*(new (std::nothrow) String(pContentInfo->ContentFilePath)));
ArrayList* pData = new (std::nothrow) ArrayList();
pData->Construct();
- pData->Add(*(new (std::nothrow) String(MUSIC)));
- pData->Add(*(new (std::nothrow) Integer(0)));
- pData->Add(*(pPath));
+ pData->Add(*(new (std::nothrow) String(IDSCN_ARTIST_LIST)));
+ pData->Add(*(new (std::nothrow) String(pContentInfo->ArtistName)));
- pSceneManager->GoForward(ForwardSceneTransition(IDSCN_PLAYER), pData);
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ARTIST_CONTENT_LIST), pData);
}
delete pContentInfo;