From 24e4d35696c3502b0ea8b5925175eb23bf1b05ff Mon Sep 17 00:00:00 2001 From: jacques Date: Tue, 22 Sep 2020 11:06:01 +0200 Subject: [PATCH] add test for scheduling notification --- .../main/java/net/foucry/pilldroid/PillDroidJobService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/PillDroidJobService.java b/app/src/main/java/net/foucry/pilldroid/PillDroidJobService.java index 11d5f3c..2140f8d 100644 --- a/app/src/main/java/net/foucry/pilldroid/PillDroidJobService.java +++ b/app/src/main/java/net/foucry/pilldroid/PillDroidJobService.java @@ -61,11 +61,10 @@ public class PillDroidJobService extends JobService { e.printStackTrace(); } - // TODO: remove comments when save drugs will wor again if (firstMedicament != null) { - //if (firstMedicament.getPrise() != 0) { + if (firstMedicament.getPrise() != 0) { scheduleNotification(); - //} + } } Log.d(TAG, "Job finished");