if (focus_state == FOCUS_IS_ACQUIRED) {
LOGW("watch: FOCUS_IS_ACQUIRED");
+ player->sound_focus.acquired = TRUE;
+
if (MM_ERROR_NONE == __mmplayer_convert_sound_focus_state(FALSE, reason_for_change, &msg))
player->sound_focus.focus_changed_msg = (int)msg;
}
} else if (focus_state == FOCUS_IS_RELEASED) {
LOGW("FOCUS_IS_RELEASED: Got msg from asm to resume");
+ player->sound_focus.acquired = FALSE;
player->sound_focus.antishock = TRUE;
player->sound_focus.by_asm_cb = FALSE;
if (focus_state == FOCUS_IS_RELEASED) {
LOGW("FOCUS_IS_RELEASED");
+ player->sound_focus.acquired = FALSE;
if (MM_ERROR_NONE == __mmplayer_convert_sound_focus_state(FALSE, reason_for_change, &msg))
player->sound_focus.focus_changed_msg = (int)msg;
}
} else if (focus_state == FOCUS_IS_ACQUIRED) {
LOGW("FOCUS_IS_ACQUIRED: Got msg from asm to resume");
+ player->sound_focus.acquired = TRUE;
player->sound_focus.antishock = TRUE;
player->sound_focus.by_asm_cb = FALSE;