- Community aggregator
- Country: United States
Scheduled app blocks in Kotlin: day bitmasks, overnight windows, and a Flow that wakes on time
A one-off app block is simple to model: a package name and a timestamp. When the timestamp passes, the block is over. A recurring block is harder. "Block these apps from 22:00 to 06:00 on weeknights" has to answer questions like: is it active right now, when does it end, what happens when it…