mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-05-02 07:34:33 +02:00
feat: remove-screenshot-restriction
patch (#285)
Co-authored-by: Linus789 <Linus789@users.noreply.github.com>
This commit is contained in:
parent
2a16da15d9
commit
c3eff913dd
@ -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);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user