mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Added error log
This commit is contained in:
parent
72500b2dc2
commit
4005a5192b
1 changed files with 10 additions and 2 deletions
|
|
@ -25,6 +25,7 @@ import java.util.Collections;
|
|||
import java.util.List;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Named;
|
||||
import timber.log.Timber;
|
||||
|
||||
/**
|
||||
* The presenter class for Contributions
|
||||
|
|
@ -173,7 +174,11 @@ public class PendingUploadsPresenter implements UserActionListener {
|
|||
)
|
||||
.subscribe(() ->
|
||||
WorkRequestHelper.Companion.makeOneTimeWorkRequest(
|
||||
context, ExistingWorkPolicy.KEEP)
|
||||
context, ExistingWorkPolicy.KEEP),
|
||||
throwable -> {
|
||||
Timber.e(throwable);
|
||||
restartUploads(contributionList, index + 1, context);
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
|
|
@ -192,7 +197,10 @@ public class PendingUploadsPresenter implements UserActionListener {
|
|||
.subscribeOn(ioThreadScheduler)
|
||||
.subscribe(() ->
|
||||
WorkRequestHelper.Companion.makeOneTimeWorkRequest(
|
||||
context, ExistingWorkPolicy.KEEP)
|
||||
context, ExistingWorkPolicy.KEEP),
|
||||
throwable -> {
|
||||
Timber.e(throwable);
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue