fixed total step count issues.
authorTrillGates <williamtrillgates@gmail.com>
Tue, 8 Jun 2021 11:49:32 +0000 (19:49 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Tue, 8 Jun 2021 11:49:32 +0000 (19:49 +0800)
app/release/ICSer_V789_2106081741_release.apk [moved from app/release/ICSer_V788_2106081538_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_V788_2106081538_release.apk
rename to app/release/ICSer_V789_2106081741_release.apk
index e01c208..0ce896e 100644 (file)
Binary files a/app/release/ICSer_V788_2106081538_release.apk and b/app/release/ICSer_V789_2106081741_release.apk differ
index 78403c2..592f5d2 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":788,"versionName":"2106081538","enabled":true,"outputFile":"ICSer_V788_2106081538_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V788_2106081538_release.apk","properties":{}}]
\ No newline at end of file
+[{"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
index 8716919..3646ecc 100644 (file)
@@ -511,7 +511,7 @@ public class protocol_anan {
         }
         ICLogger.d("target step == > " + targetStep + " current total step == > " + totalStepCount);
         //判断是否达标
-        if (totalStepCount >= targetStep) {
+        if (targetStep != 0 && totalStepCount >= targetStep) {
             SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
             String format = simpleDateFormat.format(new Date());
             String record = SharePreferenceUtil.getPrefString(ds.getContextProxy().context,
@@ -1007,9 +1007,9 @@ public class protocol_anan {
             String trigger = split[3];
             ICLogger.d("trigger == > " + trigger);
             if ("1".equals(trigger)) {
-                ProfileManager.restoreSilent(mRuntime.getContextProxy().context, audioManager);
-            } else {
                 ProfileManager.silentAll(mRuntime.getContextProxy().context, audioManager);
+            } else {
+                ProfileManager.restoreSilent(mRuntime.getContextProxy().context, audioManager);
             }
             String cmdCode = split[2];
             int index = cmd.indexOf(cmdCode);
@@ -1074,6 +1074,10 @@ public class protocol_anan {
             ICLogger.d("value == > " + value);
             //下一次心跳,会去数据库里查询
             targetStep = -1;
+            //清空记录
+            SharePreferenceUtil.setPrefString(mRuntime.getContextProxy().context,
+                    "show_sport_target_flag",
+                    "");
             ContentValues contentValues = new ContentValues();
             contentValues.put(FZDDatabaseHelper.sKey, cmdMap.get(CMD_TYPE.BP98));
             contentValues.put(FZDDatabaseHelper.sValue, value);
index 87152c1..92f1676 100644 (file)
@@ -1,2 +1,2 @@
-#Tue Jun 08 15:38:05 CST 2021
-VERSION_CODE=788
+#Tue Jun 08 17:41:37 CST 2021
+VERSION_CODE=789