Skip to content

feat: Enhance PiP and floating window blocking capability (e.g., YouTube Premium) - #404

Open
Nguyenvu0511 wants to merge 1 commit into
curbox-app:kt-rewritefrom
Nguyenvu0511:feature/pip-blocker
Open

feat: Enhance PiP and floating window blocking capability (e.g., YouTube Premium) #404
Nguyenvu0511 wants to merge 1 commit into
curbox-app:kt-rewritefrom
Nguyenvu0511:feature/pip-blocker

Conversation

@Nguyenvu0511

Copy link
Copy Markdown

This PR enhances the app's blocking capabilities by detecting and handling Picture-in-Picture (PiP) and floating windows.
Changes included:

  1. Added flagRetrieveInteractiveWindows to Accessibility Service config.
  2. Updated AppBlocker, FocusModeBlocker, and GrayScaleFilter to scan through all visible windows (not just the primary app).
  3. If a blocked app (like YouTube) is detected in PiP mode, the service sends an Intent to expand it to full screen before launching the Warning Activity, effectively preventing users from bypassing the block using PiP.
  4. fix: watch time not tracked for YouTube and other floating window apps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant