Skip to content

Instantly share code, notes, and snippets.

@eric-romero
Created June 17, 2019 17:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
public abstract class SafeJobIntentService extends JobIntentService {
@Override
public void onCreate() {
super.onCreate();
if (Build.VERSION.SDK_INT >= 26) {
mJobImpl = new androidx.core.app.SafeJobServiceEngineImpl(this);
} else {
mJobImpl = null;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment