While the in/services module primarily operates in the background, it is responsible for the two most critical visual components of the application: the Blocking Overlay and the Nudge Chip.The layout strategy for these elements bypasses standard app boundaries by using WindowManager to draw directly onto the system layer. The visual style leverages a “Premium Glass” aesthetic—using real-time blur, semi-transparent backgrounds, and dynamic color extraction from app icons to ensure the UI feels like a native extension of the Android OS.
The UI in this module is driven by a complex “Projection Engine” that ensures the user sees zero-latency updates, even when the database is still processing.
Because these components rely on system-level WindowManager and , they cannot be viewed in standard Compose Previews.
Diagnostic Mode: Can be enabled in Settings to show “Precise” vs “Estimated” labels on the UI.
Test Nudges: The NudgeMonitor includes a triggerTestNudgeForPackage function to manually invoke the overlay for visual verification.
Accessibility Testing: The ScrollTrackService uses isNodeScrollable to ensure it only interacts with valid UI elements, preventing “Ghost” scrolls in non-interactive areas.