Skip to content

Commit

Permalink
Merge pull request #743 from LauraAnt/issue_742
Browse files Browse the repository at this point in the history
Fix "job without constraints" issue
  • Loading branch information
F43nd1r authored Jun 19, 2019
2 parents bfa3235 + 31c87a3 commit f7a8dac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public boolean shouldFinishActivity(@NonNull Context context, @NonNull CoreConfi
assert scheduler != null;
PersistableBundle extras = new PersistableBundle();
extras.putString(RestartingAdministrator.EXTRA_LAST_ACTIVITY, lastActivityManager.getLastActivity().getClass().getName());
scheduler.schedule(new JobInfo.Builder(0, new ComponentName(context, RestartingService.class)).setExtras(extras).build());
scheduler.schedule(new JobInfo.Builder(0, new ComponentName(context, RestartingService.class)).setExtras(extras).setOverrideDeadline(100).build());
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit f7a8dac

Please sign in to comment.