(KLCK) Sometimes flow cant run at the actual lock screen, not in editor mode

When I use swipe down action for trigger the flow, the flow doesnt work correctly but sometimes does. Idk this is a bug or not because this can be suck and imprecise the results.

Here the flow work correctly. The title of current music is “Adrenaline” and the gv(tl2)/variable “tl2” is used to remember what title of the last music played. I use this because when the music player is stopped the music info doesnt appear. I do the same for the panel color because I want when the music player was stopped the panel color still appear. The color is based on dominant and vibrant color from the cover. And when the cover is disappear I want the color still. But ..

When I switch the music, sometimes it doesnt update the variable “tl2”. Even though I had the flow and set the trigger based on music title changes.

And.. I think for the formulas I used is all working and when I tested it in editor mode it works correctly. But, when I try for the actual lock screen, sometimes it doesnt work. Idk why. I already changes some setting for global persistence to always overwrite globals. But it doesnt fix the problem. So, is this a bug?

Kustom editor and the actual screen always live two different lives. Personally, I wouldn’t rely strictly on Flows here, as they can be a bit unpredictable and laggy outside the editor.

Honestly, you don’t even need a Flow for this. Just use a regular Touch → Toggle Global action right on your ‘Next/Previous’ media buttons to update your tl2 variable.

Also, keep in mind that a ‘swipe down’ gesture on the actual lock screen is usually hijacked by Android system itself (for the notification shade), which is why it triggers randomly.

Omg thank you for suggest using toggle global switch!:grin:. I thought it just toggle global switch and cant do for all globals type. But, I just realized the formula below is for set the global depend it’s formula. Thank you very much and if I made some mistakes texting here Im sorry because I dont use English in daily so my English is not that good :blush::folded_hands: