[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