5minho / DreamRecorder

mino & bran BoostCamp Project
6 stars 0 forks source link

Alarm Sound가 지정된 알람소리가 아닌 타 알람소리로 울림. #58

Closed YoonJuHo closed 6 years ago

YoonJuHo commented 6 years ago

아키텍쳐 DateStore에서 알람이 변경 -> Scheduler에서 해당 Alarm의 Notification에 변경 -> Scheduler는 변경된 Notifications들을 종합하여 다음 알람시간을 SoundManager에게 전달.

Notification의 변화를 종합하여 nextTriggerDateDidChange를 post할 때 무조건 변경된 Alarm만을 기준으로 보내주고 있었음 즉, SoundManager는 올바른 nextDate를 가지고 있으나 항상 마지막에 수정된 Alarm의 SoundPath를 갖게 되고 있었음.