feat: 任务推送增加语音提示(newMessage.mp3)

planId=2 新消息方案加上 audioResId = R.raw.new_message
和旧版一致,推送新任务时震动+播放语音提示

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
dongliang
2026-05-07 12:33:05 +09:30
parent caa38c53d8
commit 43e61ffb70
2 changed files with 2 additions and 2 deletions

View File

@@ -14,11 +14,11 @@ object VibrationDefaults {
/** 所有默认方案 */ /** 所有默认方案 */
val patterns: Map<Int, VibrationPattern> = mapOf( val patterns: Map<Int, VibrationPattern> = mapOf(
// planId 2: 新消息 // planId 2: 新消息(推送新任务时震动+语音)
2 to VibrationPattern( 2 to VibrationPattern(
planId = 2, planName = "新消息", planId = 2, planName = "新消息",
shockTime = 1f, shockTimes = 2, shockIntervalTime = 1f, shockCycleTimes = 1, shockTime = 1f, shockTimes = 2, shockIntervalTime = 1f, shockCycleTimes = 1,
audioResId = 0 audioResId = R.raw.new_message
), ),
// planId 3: 未读提醒 // planId 3: 未读提醒
3 to VibrationPattern( 3 to VibrationPattern(

Binary file not shown.