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

On tile click doesn't update the UI #12

Closed
max-ishere opened this issue Dec 6, 2022 · 3 comments
Closed

On tile click doesn't update the UI #12

max-ishere opened this issue Dec 6, 2022 · 3 comments
Labels
enhancement New feature or request notplanned This will not be worked on

Comments

@max-ishere
Copy link

Steps to reproduce

  1. Open the app.
  2. Set the light level to any value (e.g. 22).
  3. Open notifications while the app is open and click the tile to turn the flash off. Close the notifications.

Actual result

The level in app is the same value (e.g. 22) and the bar is filled, but the light is physically off and the tile is in the off state.

Expected result

The app shows the current flash state (e.g. off).

Notes

If you click the tile again and it sets the level to something different (e.g. default is 10) the app will show 22 (from example above), but the actual level is 10.

Importance

Honestly not that important, since you can press home (swipe up on buttonless devices) and open the app again (not a full restart) and it will get the current state correctly.

Notes

The tile updates correctly if the flashlight level or state (on/off) is changed in the app.

@cyb3rko
Copy link
Owner

cyb3rko commented Dec 6, 2022

That's how you expect the app to work, unfortunately there's currently no way to check which light level the flashlight is currently on.

This is why atm this is not possible.

@max-ishere
Copy link
Author

I just found this by accident so decided to report it just in case. Don't really expect any action on this.

@cyb3rko
Copy link
Owner

cyb3rko commented Dec 7, 2022

Yea, thanks for this report.
I'll keep an eye on updates of the flashlight api, maybe Google will add it one day 🙃

Then I would tackle this problem.

@cyb3rko cyb3rko added enhancement New feature or request notplanned This will not be worked on labels Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request notplanned This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants