-
-
Save datienza/89990d8b2083b5ad33c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * Template to complete Jobs classes | |
| * | |
| * Declaration: Java - Declaration | |
| * Variables: | |
| * $CLASS$ expresion: className() defaultValue: Object | |
| * | |
| * Follow this instruction to add it to Android Studio | |
| * http://dmytrodanylyk.com/pages/blog/templates.html | |
| */ | |
| public $CLASS$() { | |
| super(new Params(Priority.HIGH).requireNetwork().groupBy("$CLASS$-job")); | |
| } | |
| @Override | |
| public void onAdded() { | |
| } | |
| @Override | |
| public void onRun() throws Throwable { | |
| } | |
| @Override | |
| protected void onCancel() { | |
| } | |
| @Override | |
| protected boolean shouldReRunOnThrowable(Throwable throwable) { | |
| return false; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment