TableView* pContentsTableView = static_cast<TableView*>(__pContentsListViewPanel->GetControl(IDC_CONTENTS_TABLEVIEW));
pContentsTableView->UpdateTableView();
- }
+ }
break;
case IDA_PLAYER_CONTROLLER_VOLUME:
if (__isLongPressed == true)
{
__pPlayerPresentationModel->StopForwardRewind();
+ __isLongPressed = false;
}
}
if (playerState == PLAYER_STATE_ERROR)
{
+ MusicPlayerApp* pApp = static_cast<MusicPlayerApp*>(App::GetInstance());
RemoveContextMenu();
SetContentInfo( __pPlayerPresentationModel->GetCurrentContentIndex());
SetPlayerScreenState(PLAYER_SCREEN_STATE_ERROR_CONTENT);
}
ShowMessageBox(ResourceManager::GetString(L"IDS_MUSIC_POP_UNABLE_TO_PLAY_ERROR_OCCURRED"));
+
+ if (pApp != null && pApp->GetRequestId() != null)
+ {
+ AppControlProviderManager::GetInstance()->SendAppControlResult(pApp->GetRequestId(),APP_CTRL_RESULT_SUCCEEDED,null);
+ pApp->ResetRequestId();
+ }
}
- if (playerState == PLAYER_STATE_PAUSED)
+ else if (playerState == PLAYER_STATE_PAUSED)
{
if (__pPlayerPresentationModel->IsDuringCall() == true)
{
{
SetPlayerScreenState(PLAYER_SCREEN_STATE_DURING_CALL);
}
- else
+ else if (__playerScreenState == PLAYER_SCREEN_STATE_DURING_CALL || __playerScreenState == PLAYER_SCREEN_STATE_ERROR_CONTENT)
{
- SetPlayerScreenState(PLAYER_SCREEN_STATE_NORMAL);
-
+ if (__isAppControlDuringCall)
+ {
+ SetPlayerScreenState(PLAYER_SCREEN_STATE_APP_CONTROL);
+ __isAppControlDuringCall = false;
+ }
+ else
+ {
+ SetPlayerScreenState(PLAYER_SCREEN_STATE_NORMAL);
+ }
}
AppLogDebug("EXIT");
}
AppLogDebug("ENTER");
RemoveContextMenu();
- if(GetPlayerScreenState() != PLAYER_SCREEN_STATE_DURING_CALL)
+ if(GetPlayerScreenState() != PLAYER_SCREEN_STATE_DURING_CALL &&
+ GetPlayerScreenState() != PLAYER_SCREEN_STATE_ERROR_CONTENT)
{
__pMoreContextButton->SetEnabled(isFileExist);
__pMoreContextButton->Invalidate(true);
void
PlayerForm::SetPlayerScreenState(unsigned int playerScreenState)
{
- AppLogDebug("ENTER");
+ AppLogDebug("ENTER %d",playerScreenState);
if (__playerScreenState == playerScreenState||
(playerScreenState != PLAYER_SCREEN_STATE_NORMAL &&
__pShuffleButton->SetShowState(false);
__pRepeatButton->SetShowState(false);
__prevRepeatStateRunByAppControl = __pPlayerPresentationModel->GetRepeatState();
- SetRepeatButtonImage(IDA_TYPE_REPEAT_A);
+// SetRepeatButtonImage(IDA_TYPE_REPEAT_A);
if (__pContentsListViewPanel->GetShowState() == true)
{
case PLAYER_SCREEN_STATE_ERROR_CONTENT:
{
- if(__pPlayerPresentationModel->IsDuringCall())
+ if (__pPlayerPresentationModel->IsDuringCall())
{
- if(__isRunByAppControl)
+ if (__isRunByAppControl)
{
SetPlayerScreenState(PLAYER_SCREEN_STATE_APP_CONTROL);
}