commit | 53274834080c4ed0553b493d2525977bd7a20df9 | [log] [tgz] |
---|---|---|
author | lichengzhang <cz.li@mobiletek.cn> | Wed Dec 04 16:31:16 2024 +0800 |
committer | lichengzhang <cz.li@mobiletek.cn> | Wed Dec 04 16:38:18 2024 +0800 |
tree | 357b8084e379b10d83edf4afba9bf5ea7e367008 | |
parent | db2a7e1b3aa519b00153f78dcb223c2eb539f891 [diff] |
[Bugfix][T106][bug-view-408]fix the problem of after deleting all sms,the database states incorrect Only Configure :No Affected branch: master Affected module: sim Is it affected on both ZXIC and MTK:only ZXIC Self-test: Yes Doc Update: No Change-Id: I20ba408328a44da2c9c5d33dbe8a04dbcda42e56
diff --git a/cap/zx297520v3/src/lynq/framework/lynq-ril-service/src/sms/lynqSmsManager/lynq_sms_manager.cpp b/cap/zx297520v3/src/lynq/framework/lynq-ril-service/src/sms/lynqSmsManager/lynq_sms_manager.cpp index 5493846..599c9fc 100755 --- a/cap/zx297520v3/src/lynq/framework/lynq-ril-service/src/sms/lynqSmsManager/lynq_sms_manager.cpp +++ b/cap/zx297520v3/src/lynq/framework/lynq-ril-service/src/sms/lynqSmsManager/lynq_sms_manager.cpp
@@ -176,7 +176,7 @@ } if((!sms_usable)&&(count > LYNQ_MAX_SMS_LIST)) { - set_sms_full(true); + set_sms_full(true); } sqlite3_close(smsDb); return count; @@ -232,6 +232,9 @@ } LYVERBLOG("delete sms %d successfully\n",index); sqlite3_close(smsDb); + memset(sms_indexs, 0, sizeof(sms_indexs)); // clear + next_index = 0; + set_sms_full(false); return 0; } else