mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-23 00:41:11 +01:00
12 lines
369 B
Java
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);
|
||
|
}
|
||
|
}
|