From: TrillGates Date: Tue, 31 Aug 2021 12:55:40 +0000 (+0800) Subject: adjust vibrateUtils codes. X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=8a11b6df73e34c47d91daf08f4dd43102f448183;p=icsupport.git adjust vibrateUtils codes. --- diff --git a/app/release/ICSer_V932_2108311721_release.apk b/app/release/ICSer_V933_2108312051_release.apk similarity index 77% rename from app/release/ICSer_V932_2108311721_release.apk rename to app/release/ICSer_V933_2108312051_release.apk index ca572424..ce2b84f4 100644 Binary files a/app/release/ICSer_V932_2108311721_release.apk and b/app/release/ICSer_V933_2108312051_release.apk differ diff --git a/app/release/output.json b/app/release/output.json index 1575c6f8..977ca3a5 100644 --- a/app/release/output.json +++ b/app/release/output.json @@ -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 diff --git a/app/src/main/java/com/enqualcomm/support/utils/VibrateUtil.java b/app/src/main/java/com/enqualcomm/support/utils/VibrateUtil.java index 3e9b9d60..d2605d75 100644 --- a/app/src/main/java/com/enqualcomm/support/utils/VibrateUtil.java +++ b/app/src/main/java/com/enqualcomm/support/utils/VibrateUtil.java @@ -10,11 +10,15 @@ public class VibrateUtil { private static Context mContext = null; public static VibrateUtil getInstance(Context context) { - if (mContext == null) + if (mContext == null) { mContext = context; - if (vibrator == null) + } + if (vibrator == null) { vibrator = (Vibrator) mContext.getSystemService(VIBRATOR_SERVICE); - vibrateUtil = new VibrateUtil(); + } + if (vibrateUtil == null) { + vibrateUtil = new VibrateUtil(); + } return vibrateUtil; } diff --git a/app/src/main/java/com/ic/protocols/protocol_s123.java b/app/src/main/java/com/ic/protocols/protocol_s123.java index 1307cb80..3609af4d 100644 --- a/app/src/main/java/com/ic/protocols/protocol_s123.java +++ b/app/src/main/java/com/ic/protocols/protocol_s123.java @@ -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; } diff --git a/app/version_code.properties b/app/version_code.properties index 04f82e19..284aebf8 100644 --- a/app/version_code.properties +++ b/app/version_code.properties @@ -1,2 +1,2 @@ -#Tue Aug 31 17:21:49 CST 2021 -VERSION_CODE=932 +#Tue Aug 31 20:51:41 CST 2021 +VERSION_CODE=933