From a7434e463f7c9018676dfbe5bbe90c722d5121a0 Mon Sep 17 00:00:00 2001 From: Luis Ibanez Date: Fri, 27 May 2016 14:52:28 +0100 Subject: [PATCH] Replaced deprecated shouldReTunOnThrowable --- .../rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rosie/src/main/java/com/karumi/rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java b/rosie/src/main/java/com/karumi/rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java index adba0ab0..52673fe2 100644 --- a/rosie/src/main/java/com/karumi/rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java +++ b/rosie/src/main/java/com/karumi/rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java @@ -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. @@ -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; } }