abdalmoniem / abdalmoniem/Caffeinate

[Enhancement] Allow auto refresh of timer when screen is touched and add a toggle in settings

Open
#85 1 comment 0 reactions 1 assignee Claimed by @abdalmoniem View on GitHub
enhancement feature request todo
Dominant language
Kotlin
Stars
131
Forks
7
PR merge metrics
No merged PRs in 30d

Description

## Enhancement Proposal

### Description
Allow auto-refresh of the timer each time the screen is touched + add a toggle in settings to enable/disable so it can be to anyone's liking.
Currently the timer just runs out and when it's over you have to set it again.

### Motivation
Sometimes the timer ends a bit too soon. Instead of choosing a longer timer or re-enabling it, why not offer an option in settings that allows for an automatic refresh of the timer every time the screen is touched?

### Proposed Solution
An automatic refresh of the timer until we're done (ie. when we're not touching screen anymore). A toggle in settings to enable it, so it doesn't change anyone's workflow if they don't want that. That way you can set a short timer but if you need more time you just use the screen and it gives you more time.

### Alternatives Considered
- Using a longer timer (might be too long)
- Re-enable the timer (1 swipe to notifications + 1 tap, if you set the button in the 1st row else more)

### Additional Context
Example of use:
Set timer to 2min, use the screen for 1min59, screen won't lock until 2 more minutes because it has been refreshed at 1min59.

### Acceptance Criteria

- [ ] Allow auto-refresh upon touching screen
- [ ] Add a toggle in settings
- [ ] It works on Android 15+

### Dependencies
No idea, I'm not an Android dev, sorry for this

### Checklist
- [x] I have checked that this enhancement does not already exist.
- [ ] I have discussed this enhancement in a comment or issue and received feedback.
- [ ] I am willing to contribute this enhancement.

---

**Additional Notes:**
I have Android 15 and other apps like Keep screen on don't work for me, this one does but I have to manually re-enable

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.