8000 keep current caches waypoints visible when enabling live mode by ztNFny · Pull Request #16981 · cgeo/cgeo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

keep current caches waypoints visible when enabling live mode #16981

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ztNFny
Copy link
Contributor
@ztNFny ztNFny commented May 25, 2025

fixes #16837

@ztNFny ztNFny requested a review from moving-bits May 25, 2025 17:31
Copy link

Job Summary for Gradle

Unit tests :: integration-tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
cgeo testDebug 8.11.1 Build Scan published
cgeo packageBasicDebug 8.11.1 Build Scan published
cgeo packageBasicDebugAndroidTest 8.11.1 Build Scan published

Copy link

Job Summary for Gradle

Unit tests :: integration-tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
cgeo testDebug 8.11.1 Build Scan published
cgeo packageBasicDebug 8.11.1 Build Scan published
cgeo packageBasicDebugAndroidTest 8.11.1 Build Scan published

Copy link

Job Summary for Gradle

Unit tests :: integration-tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
cgeo testDebug 8.11.1 Build Scan published
cgeo packageBasicDebug 8.11.1 Build Scan published
cgeo packageBasicDebugAndroidTest 8.11.1 Build Scan published

Copy link
Member
@moving-bits moving-bits left a comment

Choose a reason for hiding this comment

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

I had given this a try some time ago, starting with "map type = target_geocode", but failed with the live loaders' complexity. I guess, the other way around, extending "plain mode" by displaying the target (if given), is valid as well.

Two things I've stumbled upon:

Do you want to handle the "set waypoint as target" case as well? You seem to, as you assign waypointId in getPlainMapWithTarget() (would not be needed for just setting a cache as target), but it does not fully work as expected:

Test case "set waypoint as target":

  • Cache having two waypoints, one close by, one far away
  • Map set to show 100 waypoints
  • Open cache, set far away waypoint as target
  • Enable live mode
  • Scroll to the other waypoint => it does not show up, even if less than 100 caches are being displayed. It only shows up when showing at least the info sheet for the related cache.
  • Same seems to be true for any other cache that has waypoints.

Method UnifiedMapType.isSingleCacheView() is no longer used.

@ztNFny
Copy link
Contributor Author
ztNFny commented May 31, 2025

Test case "set waypoint as target":

It's 8000 fine as it's i guess. targeting a single WP shows only that WP, no other WPs of the cache. Then enabling live adds caches per normal live cache rules and keeps what was visible before - the sole WP.

However it'd imho make sense to display all WPs when setting a signs single WP as target - but that'd be 1 step "before" what this PR implements.

@moving-bits
Copy link
Member

targeting a single WP shows only that WP, no other WPs of the cache.

That part works as expected.

Then enabling live adds caches per normal live cache rules and keeps what was visible before - the sole WP.

But it does not show the other caches' waypoints, even if configured to do so (waypoint limit > 0).

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.

Enabling live mode from a cache map hides its waypoints
2 participants
0