From: Ravi Kiran K N Date: Thu, 6 Oct 2016 04:49:16 +0000 (+0530) Subject: [TSAM-8267] Fix Audio-only home key issue X-Git-Tag: submit/tizen_mobile/20161006.133806^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81c471db4e037c96cf8da01d32f3616dbe1a204f;p=profile%2Fmobile%2Fapps%2Fnative%2Fvideo-player.git [TSAM-8267] Fix Audio-only home key issue Don't pause when Audio only mode is enabled and home key pressed. Change-Id: I0d47b54cc42451705da9ea710b3d00e6b0fffaf2 Signed-off-by: Ravi Kiran K N --- diff --git a/playview/src/view/vp-play-normal-view.c b/playview/src/view/vp-play-normal-view.c index 430e3b2..7c84c86 100644 --- a/playview/src/view/vp-play-normal-view.c +++ b/playview/src/view/vp-play-normal-view.c @@ -4754,6 +4754,7 @@ static void __vp_normal_ctx_popup_audio_only_cb(void *pUserData, Evas_Object *pO if(pNormalView->bAudioOnly == TRUE) { pNormalView->bAudioOnly = FALSE; + pPlayView->bAudioOnly = FALSE; if (pPlayView->win_minicon) { vp_minicontroller_destroy(pPlayView); @@ -4765,6 +4766,7 @@ static void __vp_normal_ctx_popup_audio_only_cb(void *pUserData, Evas_Object *pO else { pNormalView->bAudioOnly = TRUE; + pPlayView->bAudioOnly = TRUE; vp_play_util_status_noti_show(VP_PLAY_STRING_AUDIO_ONLY_PLAYBACK_MSG); if (!pPlayView->win_minicon) { diff --git a/playview/src/vp-play-view.c b/playview/src/vp-play-view.c index f692108..85588b1 100644 --- a/playview/src/vp-play-view.c +++ b/playview/src/vp-play-view.c @@ -865,7 +865,7 @@ static Eina_Bool __vp_play_view_event_key_up_cb(void *pUserData, int nType, void if (pPlayView->nPlayMode == VIDEO_PLAY_MODE_NORMAL_VIEW) { bool bLock = FALSE; vp_play_normal_view_get_lock_screen(pPlayView->pNormalView, &bLock); - if (!bLock) { + if (!bLock && !pPlayView->bAudioOnly) { if (!vp_play_normal_view_pause(pPlayView->pNormalView)) { VideoLogError("vp_play_normal_view_pause fail"); }