mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-10 07:51:20 +01:00
Add debug code
This commit is contained in:
parent
85d700cbca
commit
189c78c837
1 changed files with 8 additions and 2 deletions
|
@ -61,12 +61,18 @@ public class PillDroidJobService extends JobService {
|
||||||
|
|
||||||
if (firstMedicament != null) {
|
if (firstMedicament != null) {
|
||||||
if (firstMedicament.getPrise() != 0) {
|
if (firstMedicament.getPrise() != 0) {
|
||||||
|
if(firstMedicament.getStock() < firstMedicament.getAlertThreshold()) {
|
||||||
scheduleNotification();
|
scheduleNotification();
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
double dummy = (firstMedicament.getStock() - firstMedicament.getAlertThreshold());
|
||||||
|
Log.d(TAG, "no notification scheduled " + dummy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.d(TAG, "Job finished");
|
Log.d(TAG, "Job finished");
|
||||||
jobFinished(params, false);
|
jobFinished(params, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue