chore: Separate extensions by app (#3905)

This commit is contained in:
oSumAtrIX
2024-12-05 15:12:48 +04:00
committed by GitHub
parent de492de77d
commit e04c681424
314 changed files with 371 additions and 148 deletions
@@ -0,0 +1,15 @@
package app.revanced.extension.all.screenshot.removerestriction;
import android.view.Window;
import android.view.WindowManager;
public class RemoveScreenshotRestrictionPatch {
public static void addFlags(Window window, int flags) {
window.addFlags(flags & ~WindowManager.LayoutParams.FLAG_SECURE);
}
public static void setFlags(Window window, int flags, int mask) {
window.setFlags(flags & ~WindowManager.LayoutParams.FLAG_SECURE, mask & ~WindowManager.LayoutParams.FLAG_SECURE);
}
}