|
我在 mmi_sms_entry_use_detail_list函数中加了以下代码
if(scrId == SCR_ID_SMS_VIEWER_OPT_ADVANCED)
{
senderaddr =(U8 *) (mmi_sms_get_msg_address((U16)(g_sms_cntx.curr_msg_index)));
if(strlen((char*)senderaddr)>0)
{
memset(number, 0 , MAX_DIGITS_SMS + 1);
mmi_asc_n_to_ucs2(number, (S8*)senderaddr,MAX_DIGITS_SMS);
if((g_sms_addr.addr_num-1) == -1)
result = 1;
else if((g_sms_addr.addr_num-1) >= 0)
result = mmi_ucs2cmp(g_sms_addr.addrList[g_sms_addr.addr_num-1], number);
if(number && result !=0 )
{
if(g_sms_addr.addr_num == MAX_USE_NUMBERS)
{
mmi_ucs2cpy(g_sms_addr.addrList[MAX_USE_NUMBERS-1], number);
}
else
{
g_sms_addr.addrList[g_sms_addr.addr_num] = OslMalloc((mmi_ucs2strlen(number)+2)*ENCODING_LENGTH);
mmi_ucs2cpy(g_sms_addr.addrList[g_sms_addr.addr_num++], number);
}
}
}
}
mmi_sms_pre_entry_use_detail_list_ext函数中加了
if(g_sms_addr.addr_num == 1)
{
mmi_sms_free(g_sms_addr.addrList[g_sms_addr.addr_num -1]);
g_sms_addr.addr_num = 0;
}
if (g_sms_addr.addr_num >= 0)
代码。 结果能提取发件人的号码了,但是在提取网址中提取的也是发件人的号码,而不是网址。 请问高手这要怎样解决? 谢谢 |
|