Skip to content

Exit app on center tap in dream mode - #5

Merged
brad merged 1 commit into
developfrom
feat-exit-dream-on-tap-1538978416310908557
Jun 25, 2026
Merged

Exit app on center tap in dream mode#5
brad merged 1 commit into
developfrom
feat-exit-dream-on-tap-1538978416310908557

Conversation

@brad

@brad brad commented Jun 25, 2026

Copy link
Copy Markdown
Owner

This PR implements a change to the center tap behavior when the app is running in Android Screen Saver (Dream) mode. Instead of always opening the settings page, a tap in the center of the screen will now exit the app and return the user to the previously open app or home screen.

Key changes:

  • Native Android: Modified PhotoFrameDreamService to include an is_dream flag when launching MainActivity.
  • Native Android: Updated MainActivity to track the isDreamMode status and ScreenControlHandler to expose it to Flutter.
  • Native Android: Added an exitApp method to ScreenControlHandler that uses finishAndRemoveTask() to cleanly exit.
  • Flutter: Updated NativeScreenControlService to include isDreamMode() and exitApp() methods.
  • Flutter UI: Updated SlideshowScreen to check for dream mode status on initialization and resumption, and conditionally exit on center tap.
  • Localizations: Added 'Tap to exit' string in English and German for the "No photos found" state when in dream mode.

PR created automatically by Jules for task 1538978416310908557 started by @brad

- Added 'is_dream' flag to Intent in PhotoFrameDreamService
- Track isDreamMode in MainActivity and expose via MethodChannel
- Implement 'exitApp' native method to finish activity and remove task
- Update SlideshowScreen to exit app on center tap when in dream mode
- Update localizations for 'Tap to exit' message

Co-authored-by: brad <1614+brad@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@brad
brad merged commit b830cf9 into develop Jun 25, 2026
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.

1 participant