Skip to content

exclude camera preview from recents task snapshot - #839

Open
DenDizirik wants to merge 1 commit into
GrapheneOS:mainfrom
DenDizirik:recents-screenshot
Open

DenDizirik wants to merge 1 commit into
GrapheneOS:mainfrom
DenDizirik:recents-screenshot

Conversation

@DenDizirik

Copy link
Copy Markdown

Fixes #703

The camera preview is currently part of the recents task snapshot, so the last frame stays visible after switching away. Secure mode already excludes its task from recents. Set Activity.setRecentsScreenshotEnabled(false) on Android 13+ in MainActivity.onCreate so the normal task stays in recents without the preview. Foreground screenshots are unaffected.

Tested on a Pixel 8a (Android 17): before the change the recents card shows the preview, after it is blank.

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.

Prevent camera preview from appearing in recent-apps snapshot

1 participant