Created
June 17, 2019 17:18
-
-
Save eric-romero/52cc3706bad0149647a78abdefa54151 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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