Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At first I was planning on fixing #702 a different way #735 (comment), but then I found that brightness control can actually be useful in pitch black #735 (comment).
This PR adds adjustable brightness control to the flashlight app. The default brightness level will be the current backlight level.
By default the flashlight will be off, so it won't blind the user on launch.
The brightness control affects the backlight while the flashlight is disabled, which should make the icon dim enough that it isn't an issue.
Also added swipe down to exit and changed return app to QuickSettings.
If we find that a red flashlight color is actually usable and beneficial in some use case, that could be added behind a long press.
After recording this video, I changed the opening animation to a slide up, like the other apps.
Fixes half of #702. Shake algorithm should be added later.
VID_20211013_125548.mp4