Created
May 30, 2019 13:55
-
-
Save terrelewis/3fa7c360dd594fe49eff82b1f7e99eab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public boolean onStartJob(JobParameters jobParameters) { | |
Timber.d("In 15 min job check"); | |
//Check if the alarm is scheduled | |
boolean alarmOn = (PendingIntent.getBroadcast(context, REQUEST_CODE, intent, PendingIntent.FLAG_NO_CREATE)) != null); | |
if(!alarmOn) | |
AlarmScheduler.rescheduleRequiredAlarm(); | |
jobFinished(jobParameters, false); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment