Commons app mirror
Find a file
Jason-Whitmore eb617ae8ca
Some checks failed
Android CI / Run tests and generate APK (push) Has been cancelled
Fixes Issue 6308: Explore map shows image at my location rather than at shown location (#6315)
* ExploreMapFragment.java: add helper methods and fields to enable proper Explore map behavior

Before this commit, there was no way to tell if the user had arrived from the Nearby and
before the Nearby map center location had been searched for markers.

This commit adds a boolean flag to indicate this situation. Access, modification, and
initialization methods were added for this boolean value. Additionally, a helper
method to retrieve the Nearby map center LatLng was added as a convienience.

* ExploreMapPresenter.java: fix map update code to search for Nearby LatLng when appropriate

Before this commit, when the user selected "Show in explore" in Nearby when no pins were
on the map, Explore would only search for markers at the user's current GPS location,
rather than those at the Nearby map center.

After this commit, code was added to check if the user recently came from the Nearby map.
If so, the stored coordinates of the Nearby map is searched rather than the user's current
GPS coordinates. Additionally, the boolean that indicates that the user recently came
from the Nearby map is set to false. This ensures that the stored Nearby map center
coordinates are not used when the user taps the icon to focus the map on their
current location.

---------

Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
2025-05-21 16:54:45 +09:00
.github Comment in PR with generated builds. (#6226) 2025-03-03 21:44:08 +09:00
.idea Fixes #5806 Implemented "Refresh" button to clear the cache and reload the Nearby map (#5891) 2024-10-25 14:19:07 +09:00
app Fixes Issue 6308: Explore map shows image at my location rather than at shown location (#6315) 2025-05-21 16:54:45 +09:00
design Update app icon (Fixes #868) (#2022) 2018-12-17 11:13:46 +05:30
fastlane/metadata/android/en-US/images added icon.png file (#5447) 2024-01-17 10:03:11 +09:00
gradle/wrapper Fixes #5806 Implemented "Refresh" button to clear the cache and reload the Nearby map (#5891) 2024-10-25 14:19:07 +09:00
update-license-info Merge "commons" into the project root directory 2016-07-02 16:48:57 +09:00
.gitignore Feat: Make it smoother to switch between nearby and explore maps (#6164) 2025-01-30 21:58:00 +09:00
.mailmap Add a .mailmap file to update bvibber's name/email (#5684) 2024-04-09 07:14:11 +09:00
build.gradle Fixes #5806 Implemented "Refresh" button to clear the cache and reload the Nearby map (#5891) 2024-10-25 14:19:07 +09:00
CHANGELOG.md Add v5.3.0 to CHANGELOG.md 2025-04-15 02:43:33 +05:30
CONTRIBUTING.md Update CONTRIBUTING.md (#4113) 2020-12-31 00:11:09 +09:00
COPYING Relicense to Apache License 2013-04-23 21:16:43 +05:30
CREDITS #5611 removed MapBox from CREDIS because it has already been replaced (#5617) 2024-03-18 22:41:51 +09:00
dependency-injection.md Use JSON SPARQL query for fetching nearby places (#2398) 2019-02-06 10:40:30 +05:30
find-broken-strings-variables.sh Updated path 2016-10-26 19:56:49 +09:00
gitutils.gradle Fix for issue #1157 Added try-catch block in getBuildVersion function in gitutils.gradle … (#1158) 2019-01-03 20:18:42 +05:30
gradle.properties feat : Account Vanishing (#6098) 2025-01-09 23:27:08 +09:00
gradlew Update gradle from 4.0-rc-1 to 4.0.1 2017-07-19 17:14:37 +09:00
gradlew.bat Update gradle from 4.0-rc-1 to 4.0.1 2017-07-19 17:14:37 +09:00
jacoco.gradle fixes unit tests (#5354) 2023-10-20 11:50:51 +09:00
nr-commons.keystore.enc Automate releases (part 1) (#2111) 2018-12-14 21:07:03 +05:30
play.p12.enc Integrate gradle play publisher for automatic alpha releases (#2116) 2018-12-14 23:53:05 +05:30
README.md Fixed Build Status Badge (#6203) 2025-02-24 15:52:35 +09:00
RELEASE-CHECKLIST.md Update RELEASE-CHECKLIST 2013-04-27 00:58:19 +05:30
settings.gradle Data client simplification / removal (#5507) 2024-02-03 10:26:06 +09:00
sign.sh Fix Codacy Issues + remove unused patch 2017-03-23 17:51:13 +00:00

Wikimedia Commons Android app

GitHub issue custom search Build status Preview the app codecov

The Wikimedia Commons Android app allows users to upload pictures from their Android phone/tablet to Wikimedia Commons. Download the app here, or view our website.

Initially started by the Wikimedia Foundation, this app is now maintained by grantees and volunteers of the Wikimedia community. Anyone is welcome to improve it, just choose among the open issues and send us a pull request! :-)

Get it on F-Droid Get it on Google Play

Documentation

Our documentation repository contains extensive documentation for users, contributors, and developers alike:

Contributors

Thank you all for your work!


misaochan

translatewiki

neslihanturan

yuvipanda

nicolas-raoul

domdomegg

maskaravivek

psh

madhurgupta10

ashishkumar468

bvibber

whym

akaita

veyndan

ujjwalagrawal17

macgills

dbrant

vanshikaarora

sivaraam

Ayan-10

shashankiitbhu

Pratham2305

sandarumk

tanvidadu

cypherop

Prince-kushwaha

tobias47n9e

4D17Y4

hismaeel

tshradheya

.. and many more.

License

This software is open source, licensed under the Apache License 2.0.