Skip to content

Instantly share code, notes, and snippets.

@eric-romero
Created June 17, 2019 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eric-romero/920891500c04c301123ff7fe42382026 to your computer and use it in GitHub Desktop.
Save eric-romero/920891500c04c301123ff7fe42382026 to your computer and use it in GitHub Desktop.
@Override
public void onActivityPaused(Activity activity) {
if (activity.getIntent() == null
|| !activity.getIntent().getBooleanExtra(BackgroundJobService.SKIP_BG_CHECK, false)) {
BackgroundJobService.enqueueWork(activity);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment