-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide app content when app is in background #2442
Comments
@sosnovsky I can add
But this will disable making screenshots too. Do we need the ability to make screenshots in the app? |
For history. ref https://issuetracker.google.com/issues/237190495 |
Yes, I think taking screenshots should still be allowed in the app. Maybe it's possible to apply this flag only when app is in background, like described here - https://stackoverflow.com/a/49442984/3091318 ? |
Also there is setRecentsScreenshotEnabled property added in Android 12, we can use it for Android 12+, and View#onWindowFocusChanged(boolean) for older versions. What do you think, will it work? |
Yes, it's possible. Also, need to add that starting from Android 12 we have a little different behavior. Please look at the example |
Looks good 👍 |
details - https://github.com/FlowCrypt/flowcrypt-security/issues/264
The text was updated successfully, but these errors were encountered: