Exit app on center tap in dream mode - #5
Conversation
- 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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
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:
PhotoFrameDreamServiceto include anis_dreamflag when launchingMainActivity.MainActivityto track theisDreamModestatus andScreenControlHandlerto expose it to Flutter.exitAppmethod toScreenControlHandlerthat usesfinishAndRemoveTask()to cleanly exit.NativeScreenControlServiceto includeisDreamMode()andexitApp()methods.SlideshowScreento check for dream mode status on initialization and resumption, and conditionally exit on center tap.PR created automatically by Jules for task 1538978416310908557 started by @brad