cyb3rko / flashdim

Modern flashlight app with dim functionality on Android 13+
Apache License 2.0
456 stars 18 forks source link

Quick access via Volume Button Flash like Torchie #26

Closed JanWaldhorn closed 1 year ago

JanWaldhorn commented 1 year ago

I really like the app, thanks for that! My phone is a Pixel 6 with Graphene OS. This makes the double tap feature as suggested in Issue #21 unavailable.

I'm using Torchie app so far as an alternative (pressing both volume buttons at the same time activates the LED), but the latest update is from 2019/20 and Torchie only supports on/off.

Would it be possible to implement Torchie's approach and at the same time vary the intensity, or set a value as default?

A dream would be something like a free assignment of the volume keys. For example double pressing the volume down button = flash to 20 %, double pressing again = off. Double pressing the volume up button = LED 100 % etc.

I think this approach would work on all models and not just a few like Pixel with stock OS.

cyb3rko commented 1 year ago

Moin Jan,
I have never worked with the accessibility methods, but as Torchie already did that, it should be possible to implement.
In a few days I will have time again to start working on all these new issues :)

JanWaldhorn commented 1 year ago

Hi Niko, thank you I am very looking forward to it. I had used Volta before (also written in Kotlin) but with that it doesn't work when the screen is off. This is better solved in Torchie. Maybe the info will help with the implementation.

cyb3rko commented 1 year ago

Implemented in Version 2.1.0

Please check if that works for you. It can be enabled via the settings.