Skip to content

Conversation

@psh
Copy link
Collaborator

@psh psh commented Nov 26, 2025

Parent issue: #5928

I believe this converts the last remaining Java files to Kotlin in the project. Submitting as a Draft PR for now, as I know it's a little on the large size, and happy to break it into pieces for review and merging, or, convert to actual PR if you prefer.

Tested on Pixel 9 pro XL, all unit tests pass.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not against reviewing this as a whole rather than as several pull requests, especially since this is all about Nearby.

Problem: Somehow, most pins are first red then become green. I will post a screencast from my phone.

@nicolas-raoul
Copy link
Member

ab9f1af9-df28-4718-974c-28f4c0d93401.mp4

@nicolas-raoul
Copy link
Member

On the opposite, on branch main, pins load to red or green and stay as such.

@psh
Copy link
Collaborator Author

psh commented Nov 27, 2025

Thanks for the feedback - I'll dig into that!

@psh psh marked this pull request as ready for review November 28, 2025 16:50
@psh psh requested a review from nicolas-raoul November 28, 2025 16:50
@github-actions
Copy link

✅ Generated APK variants!

@nicolas-raoul
Copy link
Member

I am getting this crash when trying to upload via Nearby:

4605b9fa-e797-401a-ada8-a09633d38517.mp4
STACK_TRACE=java.lang.NullPointerException: Attempt to invoke virtual method 'double fr.free.nrw.commons.location.LatLng.getLatitude()' on a null object reference
at fr.free.nrw.commons.nearby.presenter.NearbyParentFragmentPresenter.searchCloseToCurrentLocation(NearbyParentFragmentPresenter.kt:610)

In branch main, the same picture's metadata is loaded fine, and caption is correctly filled with the selected item's label.

Would you mind checking? 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants