Linus 23d089b520 feat: remove-screenshot-restriction patch (#285)
Co-authored-by: Linus789 <Linus789@users.noreply.github.com>
2023-01-08 22:24:31 +01:00

12 lines
369 B
Java

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