release ICSer_V925_2111261433_release
authorTrillGates <williamtrillgates@gmail.com>
Fri, 26 Nov 2021 07:47:47 +0000 (15:47 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Fri, 26 Nov 2021 07:47:47 +0000 (15:47 +0800)
app/release/ICSer_V925_2111261433_release.apk [moved from app/release/ICSer_V923_2111261026_release.apk with 77% similarity]
app/release/output.json
app/src/main/java/com/enqualcomm/support/utils/DBHelper.java
app/src/main/java/com/enqualcomm/support/utils/VibrateUtil.java
app/version_code.properties

similarity index 77%
rename from app/release/ICSer_V923_2111261026_release.apk
rename to app/release/ICSer_V925_2111261433_release.apk
index 51cb6a6..2c64d5b 100644 (file)
Binary files a/app/release/ICSer_V923_2111261026_release.apk and b/app/release/ICSer_V925_2111261433_release.apk differ
index 75aa382..045c019 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":923,"versionName":"2111261026","enabled":true,"outputFile":"ICSer_V923_2111261026_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V923_2111261026_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":925,"versionName":"2111261433","enabled":true,"outputFile":"ICSer_V925_2111261433_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V925_2111261433_release.apk","properties":{}}]
\ No newline at end of file
index 9c1f1c6..e6f05a2 100644 (file)
@@ -9,6 +9,7 @@ import android.content.IClipboard;
 import android.content.Intent;
 import android.database.Cursor;
 import android.net.Uri;
+import android.nfc.tech.MifareClassic;
 import android.os.Handler;
 import android.os.HandlerThread;
 import android.os.SystemClock;
@@ -1086,12 +1087,15 @@ public class DBHelper {
                 ICLogger.d("count ==> " + count);
                 //超过100个,把后面的删除了,默认没有排序,先添加的会参前面
                 if (count > 100) {
+                    insertCount = 1;
                     query.moveToFirst();
-                    while (query.moveToNext() && insertCount > 1) {
+                    int targetI = count - 100;
+                    ICLogger.d("targetI ==> " + targetI);
+                    while (query.moveToNext() && targetI > 0) {
+                        targetI--;
                         ICLogger.d("insertCount ==> " + insertCount);
                         int id = query.getInt(0);
                         ICLogger.d("delete id ==> " + id);
-                        insertCount--;
                         //删除数据
                         cr.delete(ICContentProvider.PROTOCOL_CMD_RECORDS_URI, "_id=?",
                                 new String[]{String.valueOf(id)});
@@ -1100,6 +1104,7 @@ public class DBHelper {
                 query.close();
             }
         }
+        insertCount++;
         //以上代码,删除过多的数据,库里保持0~110条
         ContentValues values = new ContentValues();
         values.put("FLAG", msg.haveSent());
index 2d67c9c..c8419ee 100644 (file)
@@ -57,7 +57,7 @@ public class VibrateUtil {
         patter_item = l;\r
     }\r
 \r
-    public void vibrateOnForBattery() {\r
+     public void vibrateOnForBattery() {\r
         ICLogger.d("vibrateOnForBattery...");\r
         //不断地震动,并且监听屏幕变化,当屏幕开,或者关的时候,停止震动,取消监听\r
         long[] pattern = {0, 1000};\r
index a11567f..77e28d9 100644 (file)
@@ -1,2 +1,2 @@
-#Fri Nov 26 10:26:51 CST 2021\r
-VERSION_CODE=923\r
+#Fri Nov 26 14:33:13 CST 2021\r
+VERSION_CODE=925\r