fun Dialog.avoidScreenshotsIfNeeded() {
if (!BuildConfig.DEBUG && context.resources?.getBoolean(R.bool.allow_screenshots) == false) {
window?.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
}
such method is used in several dialogs across the app. Some of them (like the remove share or remove member from space) do not seem to need to avoid screenshots
All the uses of the method should be reviewed to keep those that are really useful, and remove the ones that don't need avoidScreenshotsIfNeeded
TASKS
such method is used in several dialogs across the app. Some of them (like the remove share or remove member from space) do not seem to need to avoid screenshots
All the uses of the method should be reviewed to keep those that are really useful, and remove the ones that don't need
avoidScreenshotsIfNeededTASKS