fixed heart rate notification values issues.
authorTrillGates <williamtrillgates@gmail.com>
Fri, 3 Sep 2021 10:50:12 +0000 (18:50 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Fri, 3 Sep 2021 10:50:12 +0000 (18:50 +0800)
app/release/ICSer_V944_2109031730_release.apk [moved from app/release/ICSer_V943_2109031614_release.apk with 77% similarity]
app/release/output.json
app/src/main/java/com/enqualcomm/support/ICSmsManager.java
app/src/main/java/com/enqualcomm/support/provider/ICDatabaseHelper.java
app/src/main/java/com/enqualcomm/support/service/HeartRateManager.java
app/version_code.properties

similarity index 77%
rename from app/release/ICSer_V943_2109031614_release.apk
rename to app/release/ICSer_V944_2109031730_release.apk
index 226ab70..61ead30 100644 (file)
Binary files a/app/release/ICSer_V943_2109031614_release.apk and b/app/release/ICSer_V944_2109031730_release.apk differ
index 676d611..397cdf1 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":943,"versionName":"2109031614","enabled":true,"outputFile":"ICSer_V943_2109031614_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V943_2109031614_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":944,"versionName":"2109031730","enabled":true,"outputFile":"ICSer_V944_2109031730_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V944_2109031730_release.apk","properties":{}}]
\ No newline at end of file
index c0af4fc..4d17ffe 100644 (file)
@@ -206,6 +206,7 @@ public class ICSmsManager extends BroadcastReceiver {
         ContentValues contentValues = new ContentValues();
         contentValues.put(ICDatabaseHelper.notification_category, "com.ic.mms");
         contentValues.put(ICDatabaseHelper.notification_title, targetDisplay);
+        contentValues.put(ICDatabaseHelper.notification_phone, phoneNum);
         contentValues.put(ICDatabaseHelper.notification_type, type);
         contentValues.put(ICDatabaseHelper.notification_date, System.currentTimeMillis());
         contentValues.put(ICDatabaseHelper.notification_order, 0);
index 019f37c..e4ceea2 100644 (file)
@@ -248,6 +248,8 @@ public class ICDatabaseHelper extends SQLiteOpenHelper {
                 " text, " +
                 notification_order +
                 " integer, " +
+                notification_phone +
+                " integer, " +
                 notification_date +
                 " date, " +
                 notification_create_time +
@@ -308,6 +310,7 @@ public class ICDatabaseHelper extends SQLiteOpenHelper {
     public static final String tb_notification = "notification";
     public static final String notification_id = "_id";
     public static final String notification_title = "title";
+    public static final String notification_phone = "phone";
     public static final String notification_date = "date";
     //短信,未接电话,心率,血氧,体温(这个控制icon)
     public static final String notification_type = "type";
index 2e4f6d7..c2cfe09 100644 (file)
@@ -245,7 +245,8 @@ public class HeartRateManager extends AbstractInvokeHandlerService {
             if (bloodHeightValue > Config.LIMIT_VALUE_BPH_H || bloodHeightValue < Config.LIMIT_VALUE_BPH_L) {
                 //警报,血压高值超出范围
                 ICLogger.d("血压高压异常...");
-                createWarningNotification(context.getString(R.string.blood_presure_exception_tips_text) + bloodHeightValue + "/100mmHg)",
+                createWarningNotification(context.getString(R.string.blood_presure_exception_tips_text)
+                                + bloodHeightValue + "/100mmHg)",
                         NOTIFICATION_TYPE_BLOOD_PRESSURE, Constants.WARNING_MSG_TYPE_BLOOD_PRESSURE);
                 VibrateUtil.getInstance(context).vibrateOn(true);
             }
@@ -256,7 +257,7 @@ public class HeartRateManager extends AbstractInvokeHandlerService {
             if (bloodLowValue > Config.LIMIT_VALUE_BPL_H || bloodLowValue < Config.LIMIT_VALUE_BPL_L) {
                 //警报,血压低值超出范围
                 ICLogger.d("血压低压异常...");
-                createWarningNotification(context.getString(R.string.blood_presure_exception_tips_text) + bloodHeightValue + "/100mmHg)",
+                createWarningNotification(context.getString(R.string.blood_presure_exception_tips_text) + bloodLowValue + "/100mmHg)",
                         NOTIFICATION_TYPE_BLOOD_PRESSURE, Constants.WARNING_MSG_TYPE_BLOOD_PRESSURE);
                 VibrateUtil.getInstance(context).vibrateOn(true);
             }
index 66d1e17..26b8202 100644 (file)
@@ -1,2 +1,2 @@
-#Fri Sep 03 16:14:44 CST 2021\r
-VERSION_CODE=943\r
+#Fri Sep 03 17:30:20 CST 2021\r
+VERSION_CODE=944\r