adjust vibrateUtils codes.
authorTrillGates <williamtrillgates@gmail.com>
Tue, 31 Aug 2021 12:55:40 +0000 (20:55 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Tue, 31 Aug 2021 12:55:40 +0000 (20:55 +0800)
app/release/ICSer_V933_2108312051_release.apk [moved from app/release/ICSer_V932_2108311721_release.apk with 77% similarity]
app/release/output.json
app/src/main/java/com/enqualcomm/support/utils/VibrateUtil.java
app/src/main/java/com/ic/protocols/protocol_s123.java
app/version_code.properties

similarity index 77%
rename from app/release/ICSer_V932_2108311721_release.apk
rename to app/release/ICSer_V933_2108312051_release.apk
index ca57242..ce2b84f 100644 (file)
Binary files a/app/release/ICSer_V932_2108311721_release.apk and b/app/release/ICSer_V933_2108312051_release.apk differ
index 1575c6f..977ca3a 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":932,"versionName":"2108311721","enabled":true,"outputFile":"ICSer_V932_2108311721_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V932_2108311721_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":933,"versionName":"2108312051","enabled":true,"outputFile":"ICSer_V933_2108312051_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V933_2108312051_release.apk","properties":{}}]
\ No newline at end of file
index 3e9b9d6..d2605d7 100644 (file)
@@ -10,11 +10,15 @@ public class VibrateUtil {
     private static Context mContext = null;\r
 \r
     public static VibrateUtil getInstance(Context context) {\r
-        if (mContext == null)\r
+        if (mContext == null) {\r
             mContext = context;\r
-        if (vibrator == null)\r
+        }\r
+        if (vibrator == null) {\r
             vibrator = (Vibrator) mContext.getSystemService(VIBRATOR_SERVICE);\r
-        vibrateUtil = new VibrateUtil();\r
+        }\r
+        if (vibrateUtil == null) {\r
+            vibrateUtil = new VibrateUtil();\r
+        }\r
         return vibrateUtil;\r
     }\r
 \r
index 1307cb8..3609af4 100644 (file)
@@ -697,14 +697,11 @@ public class protocol_s123 {
     }
 
     public int getBP28Amrlen(String cmd) {
-
         String Name;
         String appendIndex;
         int packetCount;
         int currentId;
         int packetLen;
-
-
         String[] msg = cmd.split(CMDSPLIT);
         if (msg.length >= 6) {
             try {
@@ -713,24 +710,19 @@ public class protocol_s123 {
                 packetCount = Integer.parseInt(msg[3]);
                 currentId = Integer.parseInt(msg[4]);
                 packetLen = Integer.parseInt(msg[5]);
-
                 StringBuffer stringBuffer = new StringBuffer();
                 stringBuffer.append("getBP28AmrLen name = ").append(Name)
                         .append(",appendIndex = ").append(appendIndex)
                         .append(",packetCount = ").append(packetCount)
                         .append(",currentId = ").append(currentId)
                         .append(",packetLen = ").append(packetLen);
-
-
                 log(stringBuffer.toString());
                 return packetLen;
             } catch (Exception e) {
                 ICLogger.e(e.getMessage(), e);
             }
-
         } else {
             log("getBP28AmrLen", "format Error");
-
         }
         return -1;
     }
index 04f82e1..284aebf 100644 (file)
@@ -1,2 +1,2 @@
-#Tue Aug 31 17:21:49 CST 2021\r
-VERSION_CODE=932\r
+#Tue Aug 31 20:51:41 CST 2021\r
+VERSION_CODE=933\r