Fix clearing of reminders (#638)

This commit is contained in:
Kristian Tashkov
2020-09-12 20:47:03 +03:00
committed by GitHub
parent 1ffc079042
commit 69f11c9d4e

View File

@@ -211,7 +211,10 @@ class EditHabitActivity : AppCompatActivity() {
habit.color = paletteColor
if (reminderHour >= 0) {
habit.setReminder(Reminder(reminderHour, reminderMin, reminderDays))
} else {
habit.setReminder(null)
}
habit.frequency = Frequency(freqNum, freqDen)
if (habitType == Habit.NUMBER_HABIT) {
habit.targetValue = targetInput.text.toString().toDouble()