注册下一个拍照时间以当前拍照时间为参考

避免系统提早触发闹钟
PtzNew
Matthew 3 months ago
parent 4ba4be427e
commit 89fe772caa

@ -530,8 +530,7 @@ public class MicroPhotoService extends Service {
} }
// Register Next Photo Timer // Register Next Photo Timer
Date date = new Date(); long startTime = (ts == 0) ? (((new Date()).getTime() + 999) / 1000 + 1) : (ts + 1); // Add one second
long startTime = (date.getTime() + 999) / 1000 + 1; // Add one second
mService.updateCaptureSchedule(startTime); mService.updateCaptureSchedule(startTime);
} else if (TextUtils.equals(ACTION_HEARTBEAT_MANUALLY, action)) { } else if (TextUtils.equals(ACTION_HEARTBEAT_MANUALLY, action)) {
Log.i(TAG, "HB Timer Fired ACTION=" + action); Log.i(TAG, "HB Timer Fired ACTION=" + action);

Loading…
Cancel
Save