feat: remove-screenshot-restriction patch (#285)

Co-authored-by: Linus789 <Linus789@users.noreply.github.com>
This commit is contained in:
Linus 2023-01-08 22:24:31 +01:00 committed by GitHub
parent 2a16da15d9
commit c3eff913dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}