From cd752ebfdb510f8122c1300136dcdcf970168b82 Mon Sep 17 00:00:00 2001 From: koreatlwls Date: Wed, 14 Dec 2022 15:59:18 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EC=95=8C=EB=9E=8C=20=EC=A4=91?= =?UTF-8?q?=EB=B3=B5=20=EB=93=B1=EB=A1=9D=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/stop/ui/alarmsetting/AlarmSettingViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/presentation/src/main/java/com/stop/ui/alarmsetting/AlarmSettingViewModel.kt b/presentation/src/main/java/com/stop/ui/alarmsetting/AlarmSettingViewModel.kt index 57697d90..657de751 100644 --- a/presentation/src/main/java/com/stop/ui/alarmsetting/AlarmSettingViewModel.kt +++ b/presentation/src/main/java/com/stop/ui/alarmsetting/AlarmSettingViewModel.kt @@ -62,7 +62,7 @@ class AlarmSettingViewModel @Inject constructor( _alarmItem.value = it if (it != null) { - when(missionStatus){ + when (missionStatus) { MissionStatus.BEFORE -> { alarmStatus.value = AlarmStatus.EXIST } @@ -87,6 +87,7 @@ class AlarmSettingViewModel @Inject constructor( } fun callAlarm(time: String) { + deleteAlarm() alarmFunctions.callAlarm(time, alarmTime.value ?: 0) }