🧹 Refactor Og.java to use ApiBlocking for cleaner ad interception#7
Conversation
Replaced the manual Xposed hooks in `Og.java` with a standard call to `ApiBlocking.removeBanner()`. This follows the intention of the `FIXME` note and improves maintainability by centralizing Xposed hook logic to standard utility functions. Cleaned up unused imports.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
🎯 What: The
Og.javablocker class had a code health issue where it was manually hooking methods with Xposed to block ads instead of using the standardizedApiBlockingutility class. The file contained aFIXMEcomment explicitly asking to "Use APIBlocking Please".💡 Why: By standardizing the hooking logic through
ApiBlocking.removeBanner, the codebase becomes more maintainable, readable, and less prone to edge cases, as the standard methods already include standardized logging and exception handling. It also reduces code duplication.✅ Verification: Verified the code compiles perfectly with Java 8 and the test suite passes successfully. Code review confirmed this refactoring is safe and complete.
✨ Result: Cleaned up code that correctly relies on standard module functions and removed unnecessary imports.
PR created automatically by Jules for task 16755580750385676907 started by @Illhm