Skip to content
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

Add setting (off by default) to prevent screenshots. #685

Merged
merged 3 commits into from
Jun 19, 2023

Conversation

camporter
Copy link
Contributor

Fixes #573

Thoughts on this under Look and feel? Maybe a Security/Privacy settings area would be nice to have.

@twizmwazin
Copy link
Contributor

This really doesn't belong under look and feel but I don't think that needs to be addressed here necessarily. I think in a separate PR we need to reorganize the settings into more pages.

@@ -98,6 +100,14 @@ class MainActivity : ComponentActivity() {
AppSettingsViewModelFactory((application as JerboaApplication).appSettingsRepository)
}

private fun updateWindowFlags(appSettings: AppSettings) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of passing in the entire app settings, just pass in secure window.

And this function should be externalized (if possible), probably moved to JerboaTheme which has other window functions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, moved into the Theme and rebased.

@camporter camporter force-pushed the prevent_screenshots_setting branch from d505a97 to 7c4680f Compare June 17, 2023 16:07
Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@dessalines dessalines merged commit 7799993 into LemmyNet:main Jun 19, 2023
@camporter camporter deleted the prevent_screenshots_setting branch June 25, 2023 16:51
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.

Add support for blocking screenshots from being taken
3 participants