clean contact db before new data insert and publish version ICSer_V791_2106111704_release
authorTrillGates <williamtrillgates@gmail.com>
Sat, 12 Jun 2021 01:19:19 +0000 (09:19 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Sat, 12 Jun 2021 01:19:19 +0000 (09:19 +0800)
app/release/ICSer_V791_2106111704_release.apk [moved from app/release/ICSer_V789_2106081741_release.apk with 78% similarity]
app/release/output.json
app/src/main/java/com/ic/protocols/protocol_anan.java
app/version_code.properties

similarity index 78%
rename from app/release/ICSer_V789_2106081741_release.apk
rename to app/release/ICSer_V791_2106111704_release.apk
index 0ce896e..ec4a50a 100644 (file)
Binary files a/app/release/ICSer_V789_2106081741_release.apk and b/app/release/ICSer_V791_2106111704_release.apk differ
index 592f5d2..2227567 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":789,"versionName":"2106081741","enabled":true,"outputFile":"ICSer_V789_2106081741_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V789_2106081741_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":791,"versionName":"2106111704","enabled":true,"outputFile":"ICSer_V791_2106111704_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V791_2106111704_release.apk","properties":{}}]
\ No newline at end of file
index 5c2a452..3da65b5 100644 (file)
@@ -1537,8 +1537,7 @@ public class protocol_anan {
             String index = cmdlist[2];
             ICLogger.i(sb.toString());
             connection.send(AP14(index, phnums));
-            ArrayList<Contact> contactArray = new ArrayList<Contact>();
-
+            ArrayList<Contact> contactArray = new ArrayList<>();
             if (Config.custom_name.equals("YT")) {
                 ICLogger.i("=====add hotline 96885 ");
                 contactArray.add(new Contact(Contact.CATEGORY_CALL, runtime.getContextProxy().context.getResources().getString(R.string.hotline), "96885"));
@@ -1560,6 +1559,8 @@ public class protocol_anan {
 //            contactArray.add(new Contact(Contact.CATEGORY_CARE,"CARE","666"));
 //            contactArray.add(new Contact(Contact.CATEGORY_VOLTE,"VOLTE","666"));
             //保存一份到新的member数据库时
+            runtime.getContextProxy().getResolver().delete(Uri.parse(FZDMembersProvider.MEMBERS),
+                    null, null);
             for (Contact contact : contactArray) {
                 ContentValues values = new ContentValues();
                 ICLogger.d("contact == > " + contact);
@@ -1569,7 +1570,8 @@ public class protocol_anan {
                 runtime.getContextProxy().getResolver().insert(
                         Uri.parse(FZDMembersProvider.MEMBERS), values);
             }
-            runtime.getDbHelper().saveContacts(contactArray, false, false, true, false, false, false);
+            runtime.getDbHelper().saveContacts(contactArray, false,
+                    false, true, false, false, false);
 
         } else {
             ICLogger.i(" BP14 format error!");
index 92f1676..817ec9a 100644 (file)
@@ -1,2 +1,2 @@
-#Tue Jun 08 17:41:37 CST 2021
-VERSION_CODE=789
+#Fri Jun 11 17:04:07 CST 2021
+VERSION_CODE=791