-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":513,"versionName":"2009022303","enabled":true,"outputFile":"ICSer_V513_2009022303_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V513_2009022303_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":515,"versionName":"2009032133","enabled":true,"outputFile":"ICSer_V515_2009032133_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V515_2009032133_release.apk","properties":{}}]
\ No newline at end of file
if(runtime.Anti_off_flag>0 && Config.needAllwaysAlarmAntiOff){\r
runtime.Anti_off_flag++;\r
WakeLockUtil.ScreenOnWakeLockTemperary(runtime.getContextProxy().context);\r
- if (runtime.getAntioffStatus()) {\r
- runtime.getContextProxy().sendMsgBroadcast(runtime.getContextProxy().context.getResources().getString(R.string.alarm_Illegal_unlock), 2);\r
- }else{\r
- runtime.getContextProxy().sendMsgBroadcast(runtime.getContextProxy().context.getResources().getString(R.string.alarm_wristband_off), 2);\r
- }\r
+ antiservice.send_anti_event_broadcast(1);\r
+\r
}\r
\r
}\r
}\r
\r
\r
- private void send_anti_event_broadcast(int antioff){\r
+ public void send_anti_event_broadcast(int antioff){\r
\r
Intent intent=new Intent();\r
intent.setAction(ACTION_ANTI_OFF);\r
}else{\r
\r
if (Config.A9_noBroadCastActionStrip) {\r
- Util.ShowToast(mRuntime, mContext.getResources().getString(R.string.alarm_Illegal_unlock));\r
+\r
+ if (mRuntime.getAntioffStatus() == true) {\r
+ Util.ShowToast(mRuntime, mContext.getResources().getString(R.string.alarm_Illegal_unlock));\r
+ } else {\r
+ Util.ShowToast(mRuntime, mContext.getResources().getString(R.string.alarm_wristband_off));\r
+ }\r
}else {\r
if (mRuntime.getAntioffStatus() == true) {\r
intent.putExtra(KEY_ANTI_TXT, mContext.getResources().getString(R.string.alarm_Illegal_unlock));\r
public static void ScreenOnWakeLockTemperary(Context context) {\r
final PowerManager.WakeLock wakelock = ((PowerManager)context.getSystemService(Context.POWER_SERVICE)).newWakeLock(ACQUIRE_CAUSES_WAKEUP| SCREEN_DIM_WAKE_LOCK, WakeLockUtil.class.getSimpleName());\r
wakelock.acquire();\r
- Observable.timer(5000L, TimeUnit.MILLISECONDS).subscribe(new Action1<Long>() {\r
- public void call(Long param1Long) { wakelock.release(); }\r
- });\r
+ new Handler().postDelayed(new Runnable() {\r
+ @Override\r
+ public void run() {\r
+ wakelock.release();\r
+ }\r
+ },5000L);\r
+\r
}\r
\r
}\r
-#Wed Sep 02 23:03:26 CST 2020\r
-VERSION_CODE=513\r
+#Thu Sep 03 21:33:40 CST 2020\r
+VERSION_CODE=515\r