当前位置: 代码迷 >> 综合 >> 收到voicemail后按左键可以直接Dial
  详细解决方案

收到voicemail后按左键可以直接Dial

热度:65   发布时间:2024-01-19 20:27:28.0
一, (09A,09B 都适合),修改如下: 
1mmi_sms_vm_nmgr_query_message_waiting中修改:  
 { 
 info.left_softkey = 0; 
 } 
 为: 
 { 
 info.left_softkey = STR_GLOBAL_DIAL; 
 } 
2。mmi_sms_vm_nmgr_message_waiting_handle_notification中修改: 
 g_msg_cntx.msg_dial_voicemail_from_idle_longpress = FALSE; 
为: 
 g_msg_cntx.msg_dial_voicemail_from_idle_longpress = FALSE; 
 DialVoiceMail(); 
二,08B以及之前的版本,修改如下: 
mmi_msg_entry_msg_waiting_ind中修改: 
ShowCategory141Screen( 
0, 
0, 
0, 
0, 
STR_GLOBAL_BACK, 
IMG_GLOBAL_BACK, 
…… 
); 
为: 
ShowCategory141Screen( 
0, 
0, 
STR_GLOBAL_OK, 
IMG_GLOBAL_OK, 
STR_GLOBAL_BACK, 
IMG_GLOBAL_BACK, 
…… 
); 
再修改左软键的处理函数: 
在函数mmi_msg_entry_msg_waiting_ind中的ShowCategory141Screen下边添加: 
SetLeftSoftkeyFunction(DialVoiceMail,KEY_EVENT_UP); 
SetKeyHandler(DialVoiceMail,KEY_END,KEY_EVENT_DOWN); 
上述添加的部分都是在mmi_msg_entry_msg_waiting_ind中的条件 
If(IsKeyPadLockState() == 0)条件里加的。