mirror of
https://gitea.winboll.cc/ZhanGSKen/MyWinBoLL.git
synced 2026-08-14 05:27:11 +08:00
<powerbell> RemindThread 同步启停 APPMSGMailRemindThread,邮件间隔调整为10秒
- RemindThread 触发提醒时同步启动 APPMSGMailRemindThread - RemindThread 线程退出时同步停止 APPMSGMailRemindThread - APPMSGMailRemindThread 邮件发送间隔 30秒 → 10秒
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Fri Jul 17 17:35:09 CST 2026
|
||||
#Fri Jul 17 18:35:29 CST 2026
|
||||
stageCount=19
|
||||
libraryProject=
|
||||
baseVersion=15.15
|
||||
publishVersion=15.15.18
|
||||
buildCount=13
|
||||
buildCount=16
|
||||
baseBetaVersion=15.15.19
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ public class APPMSGMailRemindThread extends Thread {
|
||||
public static final String TAG = "APPMSGMailRemindThread";
|
||||
|
||||
// 邮件发送间隔(毫秒)
|
||||
private static final long MAIL_SEND_INTERVAL = 30000;
|
||||
private static final long MAIL_SEND_INTERVAL = 10000;
|
||||
|
||||
// 单例实例
|
||||
private static APPMSGMailRemindThread sInstance;
|
||||
|
||||
@@ -191,6 +191,8 @@ public class RemindThread extends Thread {
|
||||
|
||||
// 启动电量通知 TTS 语音提醒线程
|
||||
TTSRemindThread.start(this.mContext, App.sQuantityOfElectricity, isCharging);
|
||||
// 启动电量通知邮件提醒线程
|
||||
APPMSGMailRemindThread.start(this.mContext, App.sQuantityOfElectricity, isCharging);
|
||||
|
||||
// 安全休眠,保留中断标记
|
||||
safeSleepInternal(sleepTime);
|
||||
@@ -283,7 +285,8 @@ public class RemindThread extends Thread {
|
||||
*/
|
||||
private void cleanThreadStateInternal() {
|
||||
LogUtils.d(TAG, String.format("cleanThreadStateInternal() 调用 | threadId=%d", getId()));
|
||||
TTSRemindThread.stopTTS();
|
||||
TTSRemindThread.stopTTS();
|
||||
APPMSGMailRemindThread.stopMail();
|
||||
isReminding = false;
|
||||
isExist = true;
|
||||
// 中断当前线程(如果存活)
|
||||
|
||||
Reference in New Issue
Block a user