From 707e3145c2720e84d2fe6544b34f2f340cea84e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20Mac=20Gillicuddy?= Date: Sat, 25 Apr 2020 10:27:21 +0100 Subject: [PATCH] #3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading (#3696) * #3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - fix imageview rendering code * #3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - show selected depictions at the top - ensure updates to nearby places are reflected * #3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - don't set imageUrl when the url is none * #3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - rewrite unit tests * #3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - minor cleanup * #3601 [structured-commons] Wrong thumbnails at the "depictions" step when uploading - fix erroneous cache access --- .idea/inspectionProfiles/Project_Default.xml | 1 + app/build.gradle | 2 + .../explore/depictions/DepictsClient.java | 22 +- .../depictions/SearchDepictionsRenderer.java | 7 +- .../repository/UploadRemoteDataSource.java | 36 ++-- .../commons/repository/UploadRepository.java | 6 +- .../free/nrw/commons/upload/FileProcessor.kt | 2 +- .../commons/upload/UploadDepictsRenderer.java | 67 +----- .../upload/depicts/DepictsContract.java | 20 +- .../upload/depicts/DepictsFragment.java | 38 +++- .../upload/depicts/DepictsInterface.java | 3 +- .../upload/depicts/DepictsPresenter.java | 152 -------------- .../upload/depicts/DepictsPresenter.kt | 152 ++++++++++++++ .../mediaDetails/UploadMediaPresenter.java | 16 +- .../structure/depictions/DepictModel.kt | 46 ++--- .../depictions/UploadDepictsCallback.java | 2 +- .../res/layout/layout_upload_depicts_item.xml | 6 +- .../commons/upload/DepictsPresenterTest.kt | 195 ++++++++++++------ 18 files changed, 407 insertions(+), 366 deletions(-) delete mode 100644 app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.java create mode 100644 app/src/main/java/fr/free/nrw/commons/upload/depicts/DepictsPresenter.kt diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 936d6e5a6..a52bc1217 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -9,6 +9,7 @@ +