mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
correction
This commit is contained in:
parent
9289f24e5c
commit
bac6db08c0
2 changed files with 4 additions and 2 deletions
|
|
@ -49,7 +49,9 @@ class ContributionsPresenter @Inject internal constructor(
|
||||||
fun checkDuplicateImageAndRestartContribution(contribution: Contribution) {
|
fun checkDuplicateImageAndRestartContribution(contribution: Contribution) {
|
||||||
compositeDisposable!!.add(
|
compositeDisposable!!.add(
|
||||||
uploadRepository
|
uploadRepository
|
||||||
.checkDuplicateImage(contribution.localUriPath!!.path)
|
.checkDuplicateImage(
|
||||||
|
contribution.contentUri,
|
||||||
|
contribution.localUri)
|
||||||
.subscribeOn(ioThreadScheduler)
|
.subscribeOn(ioThreadScheduler)
|
||||||
.subscribe { imageCheckResult: Int ->
|
.subscribe { imageCheckResult: Int ->
|
||||||
if (imageCheckResult == ImageUtils.IMAGE_OK) {
|
if (imageCheckResult == ImageUtils.IMAGE_OK) {
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,7 @@ class UploadRepository @Inject constructor(
|
||||||
* @param filePath file to be checked
|
* @param filePath file to be checked
|
||||||
* @return IMAGE_DUPLICATE or IMAGE_OK
|
* @return IMAGE_DUPLICATE or IMAGE_OK
|
||||||
*/
|
*/
|
||||||
fun checkDuplicateImage(originalFilePath: Uri, modifiedFilePath: Uri): Single<Int> {
|
fun checkDuplicateImage(originalFilePath: Uri?, modifiedFilePath: Uri?): Single<Int> {
|
||||||
return uploadModel.checkDuplicateImage(originalFilePath, modifiedFilePath)
|
return uploadModel.checkDuplicateImage(originalFilePath, modifiedFilePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue