feat(aod,share): interactive AOD screen saver shortcuts, battery rules, 1-tap lyrics controls & 9:16 canvas story sharing - #1142
Open
Balajitechlabs wants to merge 14 commits into
Conversation
…meouts, and prevent AOD BackHandler crash (rukamori#1139)
…d swipe to skip tracks - Make System Screen Saver card interactive with a 1-tap shortcut to system Dream Settings and live configuration badge. - Add battery-aware AOD rules: 'Only while charging' toggle and configurable low battery safety cutoff (15%, 20%, 30%). - Implement horizontal swipe gestures on the AOD screen to skip to Next/Previous track with interaction reset.
…ion repeat badges - Add StoryShareDialog to export 9:16 vertical social cards with artwork, listening stats, and dynamic gradient for Instagram/WhatsApp/Telegram. - Make ListeningByDayChart and ListeningByHourChart interactive with tap tooltips, spring animations, and haptic feedback showing exact listening durations. - Add '48 Hours' continuous timeframe filter and glowing '🔥 On Repeat' obsession badge on top-played tracks.
…le buttons - Add 1-tap Romanize button in LyricsScreen header to toggle Romaji, Pinyin, and Korean romanization instantly with active highlight. - Add 1-tap Translate button in LyricsScreen header to toggle multi-language lyrics translation on the fly with active highlight.
…taSync ForegroundServiceStartNotAllowedException - Guard BackHandler in AodPlayerScreen with LocalOnBackPressedDispatcherOwner.current != null to prevent IllegalStateException when rendered inside AodDreamService window. - Catch ForegroundServiceStartNotAllowedException/Exception in ExoDownloadService.onStartCommand when Android 15/16 6-hour dataSync runtime quota is exhausted.
…apshotStateObserver crash - Add createStoryImage to ComposeToImage to render high-resolution 1080x1920 Story cards directly via Android Canvas and Coil, avoiding off-main-thread Compose View hierarchy measurements that triggered SnapshotStateObserver multithreading crashes. - Update StoryShareDialog to use createStoryImage and saveBitmapAsFile.
… SongMenu - Support sharing any playing song as a 9:16 Story Card directly from PlayerMenu. - Support sharing any library/online song as a 9:16 Story Card from SongMenu and YouTubeSongMenu. - Render high-resolution 1080x1920 Story Cards via ComposeToImage.createStoryImage with: * Dynamic blurred ambient artwork background & multi-stop dark gradient. * Live playback timeline progress bar with elapsed time & duration. * Elevated album art card with soft drop shadow. * Bold typography for title, artist, and album. * ArchiveTune branding and 'NOW PLAYING' badge.
…& open full app - Long-pressing album artwork on AOD triggers haptic feedback. - Requests system Keyguard dismissal via KeyguardManager.requestDismissKeyguard. - Prompts device PIN / Password / Fingerprint / Face ID if locked, then smoothly exits AOD into the full player screen.
…-path reallocation
rukamori
force-pushed
the
feat/aod-screensaver-battery-gestures
branch
from
August 9, 2026 11:18
3604a8b to
28f27ba
Compare
rukamori
force-pushed
the
dev
branch
2 times, most recently
from
August 29, 2026 08:41
c47f989 to
2ba97fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
This pull request introduces interactive features across AOD/Screen Saver, Lyrics, and Story Sharing, along with critical Android 15/16 stability fixes:
SnapshotStateObservermultithreading crashes.AodPlayerScreen(LocalOnBackPressedDispatcherOwner) andExoDownloadService(ForegroundServiceStartNotAllowedException).Linked Work
Change Type
Affected Surfaces
:app:core:lyrics:lastfm:canvas:shazamkit:spotifycoreScreenshots / Recordings
Behavior Notes
KeyguardManager.requestDismissKeyguardso users can authenticate with Fingerprint/Face ID/PIN and return directly to the player.BackHandlersafely checksLocalOnBackPressedDispatcherOwner.current != nullto preventIllegalStateExceptionwhen rendering insideDreamServicewindows.ExoDownloadService.onStartCommand()gracefully handlesForegroundServiceStartNotAllowedExceptionreturningSTART_NOT_STICKY.ComposeToImage.createStoryImagedraws high-resolution 1080x1920 9:16 cards on a background thread via native Canvas + Coil, bypassing Compose view tree capture.Architecture Checklist
Loading,Success,Empty, andErrorwhere this PR introduces or changes screen state.runBlockingis introduced in app execution paths.Compose / Material Checklist
collectAsStateWithLifecycle().@Immutableor@Stable.keyvalues and explicitcontentType.derivedStateOfwhere appropriate.stringResource()and duplicated visible strings on the same screen are avoided.WindowInsetscorrectly when this PR changes screen layout.Concurrency / Performance Checklist
viewModelScopeor an existing lifecycle-owned application/service scope.Dispatchers.IOorDispatchers.Default.Data / Persistence Checklist
app/schemas.Playback / Integration Checklist
universal,arm64,armeabi,x86, andx86_64variants.Localization / Assets Checklist
Privacy / Security Checklist
Verification
Reviewer Focus
AodPlayerScreen.kt:LocalOnBackPressedDispatcherOwnerguard forDreamServiceandrememberforonRequestUnlock.ComposeToImage.kt:createStoryImagebackground canvas rendering off the Compose view hierarchy.ExoDownloadService.kt:ForegroundServiceStartNotAllowedExceptionhandling for Android 15/16 6-hour quotas.Release Notes
Added interactive Screen Saver shortcut, battery rules, 1-tap lyrics Romanize/Translate toggles, and live progress timeline 9:16 Canvas Story Cards.