plm_h->running_flags &= ~CALLUI_PLM_STATE_INCOMING_CALL;
plm_h->running_flags &= ~CALLUI_PLM_STATE_NO_CALLS;
+ callui_view_type_e cur_view_type = _callui_vm_get_cur_view_type(plm_h->base.ad->view_manager);
+
if (prev_view_type == CALLUI_VIEW_INCOMING_CALL
|| prev_view_type == CALLUI_VIEW_INCOMING_CALL_NOTI
|| prev_view_type == CALLUI_VIEW_DIALLING) {
- _callui_display_set_timeout(plm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_APP_DEFAULT);
+ if (cur_view_type != CALLUI_VIEW_INCOMING_CALL) {
+ _callui_display_set_timeout(plm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_APP_DEFAULT);
+ }
}
if (plm_h->lcd_state == CALLUI_PLM_LCD_OFF) {
_callui_display_set_control_state(plm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_UNLOCK);
- } else {
+ } else if (cur_view_type != CALLUI_VIEW_INCOMING_CALL) {
_callui_display_set_control_state(plm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_ON_UNLOCK);
}
- switch (_callui_vm_get_cur_view_type(plm_h->base.ad->view_manager)) {
+ switch (cur_view_type) {
case CALLUI_VIEW_INCOMING_CALL:
case CALLUI_VIEW_INCOMING_CALL_NOTI:
plm_h->running_flags |= CALLUI_PLM_STATE_INCOMING_CALL;
- _callui_display_set_timeout(plm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_SYS_DEFAULT);
if (prev_view_type != CALLUI_VIEW_INCOMING_CALL_NOTI) {
+ _callui_display_set_timeout(plm_h->base.ad->display, CALLUI_DISPLAY_TIMEOUT_SYS_DEFAULT);
__callui_plm_set_lcd_state(plm_h, CALLUI_PLM_LCD_ON);
_callui_display_set_control_state(plm_h->base.ad->display, CALLUI_DISPLAY_CONTROL_ON_LOCK);
}
CALLUI_RETURN_VALUE_IF_FAIL(res == CALLUI_RESULT_OK, res);
if ((prev_type == CALLUI_VIEW_UNDEFINED || vm->ad->on_background)
+ && prev_type != CALLUI_VIEW_INCOMING_CALL_NOTI
&& (type == CALLUI_VIEW_DIALLING
|| type == CALLUI_VIEW_INCOMING_CALL
|| type == CALLUI_VIEW_INCOMING_CALL_NOTI)) {