fix(Reddit - Disable screenshot popup): Screenshot popup not being completely removed https://github.com/inotia00/ReVanced_Extended/issues/1810

This commit is contained in:
inotia00
2025-04-01 18:51:58 +09:00
parent 15db05c636
commit bb5964ce98
4 changed files with 42 additions and 182 deletions

View File

@ -5,7 +5,7 @@ import app.revanced.extension.reddit.settings.Settings;
@SuppressWarnings("unused")
public class ScreenshotPopupPatch {
public static boolean disableScreenshotPopup() {
return Settings.DISABLE_SCREENSHOT_POPUP.get();
public static Boolean disableScreenshotPopup(Boolean original) {
return Settings.DISABLE_SCREENSHOT_POPUP.get() ? Boolean.FALSE : original;
}
}