Skip to content

Commit

Permalink
fix(Remove screenshot restriction): Improve reliability (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus789 committed Nov 10, 2023
1 parent 37b3b6a commit 50933dc
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -5,6 +5,10 @@

public class RemoveScreenshotRestrictionPatch {

public static void addFlags(Window window, int flags) {
window.addFlags(flags & ~WindowManager.LayoutParams.FLAG_SECURE);
}

public static void setFlags(Window window, int flags, int mask) {
window.setFlags(flags & ~WindowManager.LayoutParams.FLAG_SECURE, mask & ~WindowManager.LayoutParams.FLAG_SECURE);
}
Expand Down

0 comments on commit 50933dc

Please sign in to comment.