Quick Settings Tiles Revisited

Post your questions and help other users.

Moderator: Martin

Post Reply
jmckeejr
Posts: 34
Joined: 03 May 2015 12:29

Quick Settings Tiles Revisited

Post by jmckeejr » 09 Jun 2017 04:27

Hi
I would like to figure out if it's possible to have enabled/disabled icon image for quick settings tiles. I know I could probably do a flow with contextual image but typical inactive stock tiles are grey and then blue when active. I would like to know if it is possible to have the grey tile for "0" and blue tile for "1". Sorry if wrong forum, I'm new to posting here and I did search.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Quick Settings Tiles Revisited

Post by Martin » 09 Jun 2017 18:32

Hi,

You can use an action Update Quick Settings Tile to change the state of a tile between Active/Inactive/Unavailable. Please note that there's a bug on some versions of Android where changing the state does not properly adjust the color. If you are affected, you could use the action Update Quick Settings Tile to change to a completely different icon when enabled/disabled or change the label.

Regards,
Martin

jmckeejr
Posts: 34
Joined: 03 May 2015 12:29

Re: Quick Settings Tiles Revisited

Post by jmckeejr » 14 Jun 2017 14:10

Thanks I didn't see that. Unfortunately I just have the bug on nougat 7.0 ROM. Well at least I can make a different icon

If you have any ideas to remedy the bug let me know I'll test anything or modify files if needed.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Quick Settings Tiles Revisited

Post by Martin » 14 Jun 2017 19:15

Unfortunately I'm not aware about a workaround. According to the bug report the fix ships with Android O. :(

jmckeejr
Posts: 34
Joined: 03 May 2015 12:29

Re: Quick Settings Tiles Revisited

Post by jmckeejr » 14 Jun 2017 22:03

I've got a strange workaround. The tile does not update correctly unless you disable flow then reenable then update tile, so at end of flow for disable I turn off flow, sleep 2s, then turn on and immediately update tile. Seems reliable for now. Maybe can work that into next update, to refresh the tile along with update tile. I've went as far as adding my image to the built in ones thinking it was the external image but nope.

The 2s sleep can be reduced (1s works too but some sleep is needed)just need to redraw the tile. Even using different image did not work for me.
Also, at reboot you need another flow to reset your tile at automatic startup.

Post Reply