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

Feature Request: Context not closing light when turning off screen #71

Open
schollii opened this issue Jun 22, 2024 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@schollii
Copy link

Awesome app! Small feature request:

Sometimes I need light on while I'm doing stuff with my hands like some reno in the house, so i turn off screen to save battery. But also, if I need to look something up via another pap, I don't need the light on while doing this so the context open works great there.

So would it be possible to have additional context option, if set then light remains on even while screen is off regardless of context setting?

@jetlagg3d
Copy link

So you'd like for it to turn off when leaving the app, but not when turning off your phone?

@schollii
Copy link
Author

When turning off the screen (eg on my android device it is one of the side buttons} - the phone is still on just the screen is off.

@cyb3rko cyb3rko added the enhancement New feature or request label Jun 28, 2024
@cyb3rko
Copy link
Owner

cyb3rko commented Jun 28, 2024

Hi @schollii,
thanks for your request.

I understand what you are looking for, but I would have to make some research wether the app can even detect when your screen turns off. What I suppose at the moment is that the app close and screen turn off are not separated events. But that's only a guess.

@schollii
Copy link
Author

schollii commented Jun 28, 2024

For sure. I think it does, something like this in onCreate(), not sure:

screenOffReceiver = new ScreenOffReceiver();
IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_OFF);
registerReceiver(screenOffReceiver, filter);

where ScreenOffReceiver extends BroadcastReceiver.

@cyb3rko cyb3rko changed the title Feature: Can you make context not close light when close screen Feature Request: Context not closing light when turning off screen Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants