Menu

A focus timer on an Android Home screen: what counts as done, a rolling week, and blocks that aren't rows
📰

A focus timer on an Android Home screen: what counts as done, a rolling week, and blocks that aren't rows

DEV Community: kotlin·ReClaim·11 days ago
#D2GQhb9n
#devtokotlin#devto#dev#session#open
Long article (2994 words) — no AI summary yet.
Reading 0:00
15s threshold

We're building ReClaim , a minimalist Android launcher that's on Google Play . One of the newest things we've built for its Home screen (not in the Play build yet) is a practice timer: you name something you want to spend time on, like reading, put it on the Home icon, and tap to start. It can count down or count up. We already wrote about how it borrows Do Not Disturb and how a finished session can mark a linked habit . This post is the rest of that timer: what "finished" actually means, how the streak and "this week" numbers are derived, and how a practice can hold apps without writing block rows.

A timer sounds like a clock and a button. The clock was the easy part. The part that took longer was the rule underneath it: stopping early still saves the time, but it does not complete the day. Once that rule exists, the streak, the habit mark, and a set of temporary app blocks all have to follow it.

Stack: Kotlin, Jetpack Compose, Hilt, Room, coroutines, minSdk 26 , targetSdk 36 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.