cyb3rko / flashdim

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

Quick settings tile options #10

Closed max-ishere closed 2 years ago

max-ishere commented 2 years ago

Would be nice if you could assign either of:

For:

A sensible default:

Use case for tile toggle

Idk if it's possible to differenciate between a tile press and app open. However when pressing the tile while the phone is locked it will ask for password AND activate flashlight. So being able to toggle and not unlock the phone would be great.

cyb3rko commented 2 years ago

I will see what I can do implementing dynamic actions for the tile.

A sensible default: Quick Tile: Toggle Flash App first start: Always Flash On App reopen: No action, wait for UI controls.

Turning on the flash on first app start / every app reopen is already possible via the settings.

Idk if it's possible to differenciate between a tile press and app open. However when pressing the tile while the phone is locked it will ask for password AND activate flashlight. So being able to toggle and not unlock the phone would be great.

I think I will implement that a click on the tile will simply turn the light on without opening the app while long-pressing it will open the app.

max-ishere commented 2 years ago

So being able to toggle and not unlock the phone would be great.

Was the important part that I wanted. And the button doesn't have to display flash status just work like a toggle.

cyb3rko commented 2 years ago

Implemented in Version 1.3.3

I found the following solution: By tapping the tile the flash simply turns on. When long pressing the app opens (and optionally lights up the flash).

max-ishere commented 2 years ago

Thanks thats how I wanted it...

But it doesn't use default light level 😔

cyb3rko commented 2 years ago

Right, it doesn't. Is it something you would like to have as well?

max-ishere commented 2 years ago

Yeah. Ofc. I'm not trying to be rude or smart but I already have a tile that turns on with full brightness.

max-ishere commented 2 years ago

Thanks thats how I wanted it...

But it doesn't use default light level 😔

Default as in less than 100%

cyb3rko commented 2 years ago

Alright, I thought of it as "normal" flashlight implementation with the shortcut to the app to dim it. I will include a setting to change the tile behaviour (if possible, let's see).

cyb3rko commented 1 year ago

The initial level can now be linked to the Quick settings tile in Version 1.3.4

max-ishere commented 1 year ago

Nice, thanks for the really quick implementation.

cyb3rko commented 1 year ago

Does it work for you?

max-ishere commented 1 year ago

Yes