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

Tiles not as responsive when QS is fully expanded #1

Closed
CasperVerswijvelt opened this issue Jan 4, 2022 · 2 comments
Closed

Tiles not as responsive when QS is fully expanded #1

CasperVerswijvelt opened this issue Jan 4, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@CasperVerswijvelt
Copy link
Owner

Tile services seem to get destroyed for a couple seconds when the QS is in the fully expanded state (8 tiles visible), whereas they are kept alive when QS is in semi expanded state (4 tiles). This causes delayed ui updates for network status and delayed tile click handling

@CasperVerswijvelt
Copy link
Owner Author

Looking into this, I found that Android limits the amount of custom tiles that can be bound to maximum 3 at a time. So when only 4 tiles are visible, this is most likely not an issue since a maximum of 4 tiles can be bound anyway. Whne the QS is fully expanded, all tiles across all pages are taken into account, so if you have more than 3 total custom tiles in your configuration, tiles will take turns on being bound, cycling each 5 seconds. This can cause custom tiles to be unresponsive or not up to date. The more custom tiles you have, the longer it can take for a tile to be 'bound' again. When you click a tile, it should get the priority to be bound immediately (if I read the Android sourcecode correctly), but for some reason this can still take a couple seconds too.

Since this is an Android limitation, there's not much I can do here, unfortunately.

A possible solution is to limit your custom tiles to 3

@CasperVerswijvelt CasperVerswijvelt added the bug Something isn't working label Apr 22, 2023
@CasperVerswijvelt
Copy link
Owner Author

In the 3.0.0 beta's, active tiles are used, which removes this limitation. All listeners and such are set in a separate foreground service, which then lets the tiles know they should be updated with that data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant