diff --git a/app/src/main/java/projects/medicationtracker/EditMedication.java b/app/src/main/java/projects/medicationtracker/EditMedication.java index 9c2d63d1..7e68b101 100644 --- a/app/src/main/java/projects/medicationtracker/EditMedication.java +++ b/app/src/main/java/projects/medicationtracker/EditMedication.java @@ -376,7 +376,9 @@ else if (multiplePerDay.isChecked()) */ private void clearPreviousNotifications() { - if (medication.getMedFrequency() == 1440) + long[] medIds = db.getMedicationTimeIds(medication); + + if (medIds.length == 0) { NotificationHelper.deletePendingNotification(medication.getMedId(), this); }