Skip to content

Migrated contributions folder Files from java to kotlin #6176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8e69ee2
Rename .java to .kt
Sujal-Gupta-SG Jan 29, 2025
835c756
Migrated ContributionController
Sujal-Gupta-SG Jan 29, 2025
a688180
Rename .java to .kt
Sujal-Gupta-SG Jan 29, 2025
2201be5
Migrated ContributionDao
Sujal-Gupta-SG Jan 29, 2025
177394b
Rename .java to .kt
Sujal-Gupta-SG Jan 31, 2025
66bb450
Migrated ContributionsContract,ContributionFragment,ContributionListA…
Sujal-Gupta-SG Jan 31, 2025
2d1834a
Rename .java to .kt
Sujal-Gupta-SG Feb 3, 2025
adf15f2
converted/Migrated
Sujal-Gupta-SG Feb 3, 2025
fc5e3b0
converted/Migrated
Sujal-Gupta-SG Feb 3, 2025
bdcc02b
Rename .java to .kt
Sujal-Gupta-SG Jan 29, 2025
7efed21
Migrated ContributionController
Sujal-Gupta-SG Jan 29, 2025
506588d
Rename .java to .kt
Sujal-Gupta-SG Jan 29, 2025
8b8f70c
Migrated ContributionDao
Sujal-Gupta-SG Jan 29, 2025
ac93568
Rename .java to .kt
Sujal-Gupta-SG Jan 31, 2025
daca7b3
Migrated ContributionsContract,ContributionFragment,ContributionListA…
Sujal-Gupta-SG Jan 31, 2025
c07203b
Rename .java to .kt
Sujal-Gupta-SG Feb 3, 2025
5d46614
Show placeholder and display depiction section when no depictions are…
Sujal-Gupta-SG Jan 29, 2025
6e656e8
Migrated AboutActivity from Java to Kotlin (#6158)
Akshaykomar890 Jan 30, 2025
8eb3152
Localisation updates from https://translatewiki.net.
translatewiki Jan 30, 2025
70bbf1c
Feat: Make it smoother to switch between nearby and explore maps (#6164)
andy-ife Jan 30, 2025
6329baf
Localisation updates from https://translatewiki.net.
translatewiki Jan 31, 2025
2a6367e
enhance spammy category filter (#6167)
parneet-guraya Feb 1, 2025
b04c4d8
Localisation updates from https://translatewiki.net.
translatewiki Feb 3, 2025
cf726c4
Merge remote-tracking branch 'origin/Migrated-Contributions-from-java…
Sujal-Gupta-SG Feb 3, 2025
5964fe5
correction
Sujal-Gupta-SG Feb 3, 2025
36bfeac
correction
Sujal-Gupta-SG Feb 3, 2025
0aed032
correction
Sujal-Gupta-SG Feb 3, 2025
d5d482c
GitHub workflow to build betaDebug (#6174)
mnalis Feb 4, 2025
8950d35
[Bug fix] Check if duplicate exist using both original and modified f…
parneet-guraya Feb 4, 2025
9289f24
Add multiline input for caption and description (#6173)
mnalis Feb 5, 2025
bac6db0
correction
Sujal-Gupta-SG Feb 5, 2025
73bf719
Merge remote-tracking branch 'origin/Migrated-Contributions-from-java…
Sujal-Gupta-SG Feb 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correction
  • Loading branch information
Sujal-Gupta-SG committed Feb 5, 2025
commit bac6db08c0dde8c8424fab557f54fc8f837908ea
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ class ContributionsPresenter @Inject internal constructor(
fun checkDuplicateImageAndRestartContribution(contribution: Contribution) {
compositeDisposable!!.add(
uploadRepository
.checkDuplicateImage(contribution.localUriPath!!.path)
.checkDuplicateImage(
contribution.contentUri,
contribution.localUri)
.subscribeOn(ioThreadScheduler)
.subscribe { imageCheckResult: Int ->
if (imageCheckResult == ImageUtils.IMAGE_OK) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class UploadRepository @Inject constructor(
* @param filePath file to be checked
* @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)
}

Expand Down