Skip to content

Commit

Permalink
feat: remove-screenshot-restriction patch (#285)
Browse files Browse the repository at this point in the history
Co-authored-by: Linus789 <Linus789@users.noreply.github.com>
  • Loading branch information
Linus789 and Linus789 committed Jan 8, 2023
1 parent 2a16da1 commit c3eff91
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package app.revanced.all.screenshot.removerestriction;

import android.view.Window;
import android.view.WindowManager;

public class RemoveScreenshotRestrictionPatch {

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

0 comments on commit c3eff91

Please sign in to comment.