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:
@@ -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(
|
||||||
|
|||||||
BIN
app/src/main/res/raw/new_message.mp3
Normal file
BIN
app/src/main/res/raw/new_message.mp3
Normal file
Binary file not shown.
Reference in New Issue
Block a user