Skip to content

Add overlay scenario switcher#849

Open
vibhor1102 wants to merge 1 commit into
Nain57:masterfrom
vibhor1102:codex/overlay-scenario-switcher
Open

Add overlay scenario switcher#849
vibhor1102 wants to merge 1 commit into
Nain57:masterfrom
vibhor1102:codex/overlay-scenario-switcher

Conversation

@vibhor1102
Copy link
Copy Markdown

Summary

  • add a Switch button to the Smart floating menu while detection is idle and media projection is active
  • show an overlay scenario picker listing other Smart scenarios without leaving the app being automated
  • switch the loaded Smart scenario without stopping the active screen recording session
  • update the service notification title and quick settings tile after switching

Why

This reduces the friction described in #848. If a user is already inside another app/game with a Smart scenario loaded and paused, switching scenarios currently requires leaving that app, opening Klick'r, selecting another scenario, and granting screen recording permission again.

This PR keeps the switch flow inside the accessibility overlay. The intended flow is:

  1. Pause the current Smart scenario from the overlay.
  2. Tap Switch.
  3. Pick another Smart scenario from the overlay picker.
  4. Press Play and continue in the same foreground app.

This is related to #493, but it is intentionally narrower: it is manual, user-driven switching from the floating overlay, not an automation action that chains scenarios.

Notes

  • This is scoped to Smart scenarios only.
  • The picker excludes the currently loaded scenario.
  • Seamless switching requires the existing media projection session to still be active; the Switch button is hidden if media projection is no longer available.
  • If detection happened to be running during a service-level switch, the service stops detection, switches the scenario id, and restarts detection.

Validation

  • :smartautoclicker:compileFDroidDebugKotlin

Closes #848.
Related to #493.

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.

Add overlay switcher for the currently loaded Smart scenario

1 participant