Add debug code

This commit is contained in:
jacques 2021-01-09 11:19:18 +01:00
parent 85d700cbca
commit 189c78c837

View file

@ -61,12 +61,18 @@ public class PillDroidJobService extends JobService {
if (firstMedicament != null) {
if (firstMedicament.getPrise() != 0) {
if(firstMedicament.getStock() < firstMedicament.getAlertThreshold()) {
scheduleNotification();
} else
{
double dummy = (firstMedicament.getStock() - firstMedicament.getAlertThreshold());
Log.d(TAG, "no notification scheduled " + dummy);
}
}
}
Log.d(TAG, "Job finished");
jobFinished(params, false);
jobFinished(params, true);
}