-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix: Keep screen active when user is recording audio (WPB-3479) #2056
fix: Keep screen active when user is recording audio (WPB-3479) #2056
Conversation
APKs built during tests are available here. Scroll down to Artifacts! |
Build 893 succeeded. The build produced the following APK's: |
@@ -100,6 +104,14 @@ fun RecordAudioButtonRecording( | |||
seconds += 1 | |||
} | |||
} | |||
val activity = LocalContext.current as Activity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a LocalActivity
already, so it can be even val activity = LocalActivity.current
😎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aaaaaaaa too late now :(
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
When user was recording an audio, the screen would not be kept on and would lock the phone, thus stopping the recording.
Causes (Optional)
Not implemented.
Solutions
Add a disposable effect to add flag
FLAG_KEEP_SCREEN_ON
when user is recording an audio, and dispose of the flag when it is ready to send or discarded.Testing
How to Test