apps-android-commons/app
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
..
src Fixes Issue 6308: Explore map shows image at my location rather than at shown location (#6315) 2025-05-21 16:54:45 +09:00
build.gradle Bump up version code to 1051 2025-05-18 12:44:37 +05:30
proguard-rules.txt app: adjust R8 rules to ensure our model classes are not obfuscated 2024-04-28 16:21:14 +05:30
test-proguard-rules.txt Update to API 28, and fix CI issues. (#2595) 2019-03-15 08:30:08 +05:30