Skip to content

Add option to keep screen on#1355

Open
candrew66 wants to merge 1 commit into
jonasoreland:masterfrom
candrew66:keep-screen-on
Open

Add option to keep screen on#1355
candrew66 wants to merge 1 commit into
jonasoreland:masterfrom
candrew66:keep-screen-on

Conversation

@candrew66
Copy link
Copy Markdown
Contributor

This option keeps the screen on while recording (off by default).

Fixes #439

This option keeps the screen on while recording (off by default).

Fixes jonasoreland#439
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new user-facing preference to prevent the display from turning off during an active recording screen, addressing Issue #439 (“Prevent screen from locking”).

Changes:

  • Added “Keep screen on” title/summary strings for the settings UI.
  • Added a new pref_keep_screen_on preference key and UI toggle in User Interface settings.
  • Applied FLAG_KEEP_SCREEN_ON in RunActivity based on the new preference.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
common/src/main/res/values/strings.xml Adds label/summary strings for the new setting.
app/src/main/org/runnerup/view/RunActivity.java Reads the new preference and applies/clears FLAG_KEEP_SCREEN_ON.
app/res/xml/settings_user_interface.xml Adds a CheckBoxPreference toggle for “Keep screen on”.
app/res/values/pref_keys.xml Defines the new preference key pref_keep_screen_on.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/src/main/org/runnerup/view/RunActivity.java
@candrew66 candrew66 marked this pull request as draft May 23, 2026 22:21
@candrew66 candrew66 marked this pull request as ready for review May 24, 2026 22:26
@candrew66
Copy link
Copy Markdown
Contributor Author

Was thinking of extending the PR but might leave it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent screen from locking

2 participants