Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #69 from luis-ibanez/fix_deprecation
Browse files Browse the repository at this point in the history
Deprecation warning fixed in UseCaseWrapperJob.java
  • Loading branch information
pedrovgs committed May 31, 2016
2 parents 1734ace + a7434e4 commit 756ae9e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.karumi.rosie.domain.usecase.UseCaseWrapper;
import com.path.android.jobqueue.Job;
import com.path.android.jobqueue.Params;
import com.path.android.jobqueue.RetryConstraint;

/**
* Job extension created to be able to execute a use case using android-priority-job-queue.
Expand All @@ -44,7 +45,7 @@ public UseCaseWrapperJob(UseCaseWrapper useCaseWrapper) {

}

@Override protected boolean shouldReRunOnThrowable(Throwable throwable) {
return false;
@Override protected RetryConstraint shouldReRunOnThrowable(Throwable throwable, int runCount, int maxRunCount) {
return RetryConstraint.CANCEL;
}
}

0 comments on commit 756ae9e

Please sign in to comment.