Skip to content

Commit

Permalink
FIX: [droid;oreo] re-schedule triggered channel uodate
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Jan 8, 2018
1 parent e899878 commit 302b200
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ public class TvUtil
{
JobScheduler scheduler =
(JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
if (scheduler.getPendingJob(getTriggeredJobIdForChannelId(channelId)) != null)
return;

ComponentName componentName = new ComponentName(context, SyncProgramsJobService.class);

JobInfo.Builder builder =
Expand All @@ -222,6 +219,7 @@ public class TvUtil
bundle.putLong(TvContractCompat.EXTRA_CHANNEL_ID, channelId);
builder.setExtras(bundle);

scheduler.cancel(getTriggeredJobIdForChannelId(channelId));
scheduler.schedule(builder.build());
}

Expand Down

0 comments on commit 302b200

Please sign in to comment.