Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent device from dimming or sleeping screen while video/audio playing (but really) #4168

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

mcclure
Copy link
Collaborator

@mcclure mcclure commented Dec 12, 2023

For reasons not totally clear to me, Github marked #4160 as "merged" and will not let me reopen it.

I believe this should be included for 24.1 because it fixes a 24.0 regression in the media player.

I have tested this newest commit in a number of ways, and in my testing I find (1) when viewing an image, it sleeps after about a minute (2) when viewing video, it stays awake indefinitely (3) this is true whether the image/video was opened directly, or reached by swiping from another attachment. I have not tested swiping to/from audio but I am confident it will work the same.

Copy link
Collaborator

@charlag charlag left a comment

Choose a reason for hiding this comment

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

will these flags be reset when we leave the activity?

@connyduck
Copy link
Collaborator

will these flags be reset when we leave the activity?

Yes each activity has their own window

@connyduck connyduck merged commit 331b136 into tuskyapp:develop Dec 13, 2023
3 checks passed
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.

4 participants