Commit Graph
34 Commits
Author SHA1 Message Date
kfj001 74c822484d string alterations 2026-06-28 08:30:06 +00:00
kfj001 d7ce314c22 migrate timer to ForegroundService for background survival
Move CountDownTimer logic from a Dialog into a ForegroundService so
the timer survives when the user tabs away or the activity is
destroyed. The activity becomes a thin UI projection bound to the
service via TimerStateListener callbacks.

- Create CountdownService with notification, state persistence,
  and ToneGenerator/Vibrator ownership
- Persist timer state to SharedPreferences for process death recovery
- Add notification with progress bar and Stop/Restart actions
- Embed countdown UI in activity_main.xml alongside picker UI
- Delete CountdownDialog and dialog_countdown.xml
- Update AndroidManifest with foreground service permissions
2026-06-23 01:49:11 +00:00
kfj001 7a91ecba18 visual polish: add pulsing start button and color-shifting progress ring
- Countdown ring interpolates green → yellow → red as timer progresses
- Start button pulses continuously to draw attention
- Pulse stops while dialog is shown and restarts on resume
2026-05-30 10:51:36 -07:00
kfj001 97b01437b2 bug fixes 2026-05-29 20:30:41 -07:00
kfj001 b04f197ec2 Add devcontainer setup, bump minSdk to 34, rename app to Bong Hit Timer 2026-05-28 22:39:48 -07:00
kfj001andClaude Opus 4.7 634e0ae48a Redesign start button as circular icon with spacing adjustment
Replace the rectangular Material Button with a circular FrameLayout
containing the play icon. Add a small spacer above it for better
visual separation from the duration chips. Update MainActivity to
reference the new View type instead of Button.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 21:20:49 -07:00
kfj001 451569de17 visual enhancements and documentation changes. 2026-05-27 18:32:37 -07:00
kfj001 075311d298 Adjustments to main screen layout to facilitate wider displays. 2026-05-27 13:06:13 -07:00
kfj001 a3835e1404 Simplifies the instructions 2026-05-27 00:25:55 -07:00
kfj001 bc259602aa new art assets from clipart/AI. 2026-05-27 00:20:20 -07:00
kfj001 3dd453e536 Removes additional layout for large format devices - resuing existing layout. 2026-05-26 22:56:04 -07:00
kfj001 eaaeb7fa35 fixes buttons on countdown screen 2026-05-26 13:24:08 -07:00
kfj001 6ba2f2cfdf fixes beeping to 3.2.1 cycle 2026-05-26 12:31:28 -07:00
kfj001andClaude Opus 4.7 51c7fa1464 Theme timer ring colors green instead of hardcoded purple
CountdownCanvasView ring progress and track now use themed color
resources (md_color_ring_progress/md_color_ring_track) instead of
hardcoded Material3 purple, so they stay green in both light and dark mode.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 11:52:50 -07:00
kfj001andClaude Opus 4.7 df9d92f116 Fix chip selection color green with correct color selector approach
- Replace broken chipBackground theme style with a color state-list
  selector (res/color/chip_duration_bg.xml) using chipBackgroundColor
  attribute directly on each Chip
- Green (#81C784) when checked, light gray (#E8E8E8) when unchecked
- Add minWidth="56dp" to give chips proper width

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 11:40:32 -07:00
kfj001 5b517f39d6 Merge branch 'worktree-soft-floating-stroustrup' into fat_square_interesting_buttons 2026-05-26 11:24:10 -07:00
kfj001andClaude Opus 4.7 b20208fb40 Make chip selection background green to match app theme
Add custom chip_duration_bg selector drawable (green when checked,
light gray when unchecked) and wire it through a ChipDuration chipStyle
in the theme. This overrides Material3's default purple checked state.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 11:24:10 -07:00
kfj001 9b733f2102 Merge branch 'worktree-soft-floating-stroustrup' into fat_square_interesting_buttons 2026-05-26 11:12:58 -07:00
kfj001andClaude Opus 4.7 0738fc466e Make chip selection color green to match app theme
Add colorPrimaryContainer and set it to the green shade used throughout the app.
This fixes the purplish checked state on Material3 suggestion chips.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 11:12:58 -07:00
kfj001 7491083e6a Merge branch 'worktree-soft-floating-stroustrup' into fat_square_interesting_buttons 2026-05-26 11:04:36 -07:00
kfj001andClaude Opus 4.7 13786f6c8e Make dropdown arrow white for better visibility on green button
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 11:04:35 -07:00
kfj001andClaude Opus 4.7 92952a2cf2 Convert timeout selector button from oval to rectangular pill shape
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 08:50:44 -07:00
kfj001 6de400753c Rounded and larger button treatment 2026-05-26 03:39:25 -07:00
kfj001 822d6fc1b1 fixes import 2026-05-26 03:01:11 -07:00
kfj001 b78b2109a7 Merge branch 'green_motif' of http://192.168.1.74:30008/kfj001/bong_hit_timer_android 2026-05-26 03:00:15 -07:00
kfj001 2701bd22dd fixes import issue 2026-05-26 02:39:53 -07:00
kfj001 1273be03f2 Fixes a crash when changing orientation 2026-05-26 02:39:53 -07:00
kfj001 cb5c9dc547 bug fixes to AI suggested enhancements 2026-05-26 02:39:53 -07:00
kfj001 e00de3d340 added progress ring, vibration and selectable duration (bugged) 2026-05-26 02:39:53 -07:00
kfj001 41721bdc04 Fixes a crash when changing orientation 2026-05-26 02:32:18 -07:00
kfj001 79afe50955 Introduces a green motif for light/dark mode. 2026-05-26 02:26:27 -07:00
kfj001 43bb282e74 bug fixes to AI suggested enhancements 2026-05-26 02:10:01 -07:00
kfj001 d8ead34f0b added progress ring, vibration and selectable duration (bugged) 2026-05-26 01:22:03 -07:00
kfj001 be631985cb initial commit 2026-05-26 00:51:07 -07:00