Skip to content

Instantly share code, notes, and snippets.

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