Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamGuidarini committed Feb 1, 2022
1 parent fa7f7a4 commit a7231a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a7231a3

Please sign in to comment.