mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Add log;
Clean code
This commit is contained in:
parent
5b4d25a92a
commit
703c9cec9c
1 changed files with 3 additions and 3 deletions
|
@ -44,13 +44,12 @@ public class PillDroidJobService extends JobService {
|
|||
*/
|
||||
private void doBackgroundWork(final JobParameters params) {
|
||||
|
||||
Log.d(TAG,"background job");
|
||||
if (jobCancelled) {
|
||||
return;
|
||||
}
|
||||
List<Medicament> medicaments = dbHelper.getAllDrugs();
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
|
||||
Medicament firstMedicament = null;
|
||||
|
||||
try {
|
||||
|
@ -68,7 +67,7 @@ public class PillDroidJobService extends JobService {
|
|||
}
|
||||
|
||||
Log.d(TAG, "Job finished");
|
||||
jobFinished(params, true);
|
||||
jobFinished(params, false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -83,6 +82,7 @@ public class PillDroidJobService extends JobService {
|
|||
* Schedule Notification for the delay
|
||||
*/
|
||||
private void scheduleNotification() {
|
||||
Log.d(TAG, "schedule notification");
|
||||
createNotificationChannel();
|
||||
Intent intent = new Intent(this, MedicamentListActivity.class);
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,0);
|
||||
|
|
Loading…
Reference in a new issue