result r = E_SUCCESS;\r
if (_pAudioPlayer != null && mediaFilepath.IsEmpty() == false)\r
{\r
+ if (_pAudioPlayer->GetState() != PLAYER_STATE_PAUSED)\r
+ {\r
+ _pAudioPlayer->Construct(*this);\r
+ }\r
+\r
r = _pAudioPlayer->OpenFile(mediaFilepath, false);\r
r = _pAudioPlayer->Play();\r
r = _pAudioPlayer->SetLooping(false);\r
void\r
SubBaseSelection::OnPlayerAudioFocusChanged (void)\r
{\r
+ //Empty Implementation.\r
}\r
\r
void\r
r = _pExport->Construct(IDA_BTN_EXPORT);\r
_pExport->SetText(buttonExportHere);\r
\r
-/* _pCreateFolder = new (std::nothrow) FooterItem();\r
- r = _pCreateFolder->Construct(IDA_BTN_CREATE_FOLDER);\r
- _pCreateFolder->SetText(buttonCreate);*/\r
}\r
else\r
{\r
_pAttach->SetText(buttonAttach);\r
}\r
\r
-/* _pCancel = new (std::nothrow) FooterItem();\r
- r = _pCancel->Construct(IDA_BTN_CANCEL);\r
- _pCancel->SetText(buttonCancel);*/\r
-\r
TryCatch(_pFooter != null, , "Footer is Null");\r
\r
if (_pFooter != null)\r
}\r
else\r
{\r
- // _pAudioPlayer->Play();\r
- AppLogDebug("music player started");\r
LoadMusicPlayer(pDirStr->GetFullFilePath(), PLAYER_STATE_INITIALIZED);\r
}\r
}\r
_pAudioPlayer->Close();\r
_pListView->RefreshList(_previousAudioSelected, LIST_REFRESH_TYPE_ITEM_MODIFY);\r
_previousAudioSelected = index;\r
+\r
LoadMusicPlayer(pDirStr->GetFullFilePath(), PLAYER_STATE_STOPPED);\r
}\r
_currentAudioPlayIndex = index;\r
String delimiter(L"/");\r
StringTokenizer tokenizer(filePath, delimiter);\r
\r
- while (tokenizer.HasMoreTokens())\r
- {\r
- int tokenCount = tokenizer.GetTokenCount();\r
+ AppResource* pAppResource = null;\r
\r
- if (tokenCount == 1)\r
+ pAppResource = UiApp::App::GetInstance()->GetAppResource();\r
+\r
+ if (filePath == BasePresentationModel::GetMediaPath())\r
+ {\r
+ if (pAppResource != null)\r
{\r
- tokenizer.GetNextToken(parentFileName);\r
+ pAppResource->GetString(L"IDS_MF_TAB_PHONE", parentFileName);\r
}\r
- else\r
+ }\r
+ else if (filePath == BasePresentationModel::GetSdCardPath())\r
+ {\r
+ if (pAppResource != null)\r
{\r
- tokenizer.GetNextToken(token);\r
+ pAppResource->GetString(L"IDS_MF_TAB_MEMORY_CARD", parentFileName);\r
+ }\r
+ }\r
+ else\r
+ {\r
+ while (tokenizer.HasMoreTokens())\r
+ {\r
+ int tokenCount = tokenizer.GetTokenCount();\r
+\r
+ if (tokenCount == 1)\r
+ {\r
+ tokenizer.GetNextToken(parentFileName);\r
+ }\r
+ else\r
+ {\r
+ tokenizer.GetNextToken(token);\r
+ }\r
}\r
}\r
\r