Hello, I have Tasker send a text to be put in an lightning item label.
Hello, I have Tasker send a text to be put in an lightning item label. It all works fine, but often the item label is reset to its original value.: lock, do nothing. Sometimes it resets after I did something in the lightning settings like f.e. Setting the settings from light to dark color. But it also happens when doing nothing. When turning screen on the original text is displayed. Is there a way to prevent restoring original text and display Tasker variable instead?
]]>
« Hi, people! (Previous Post)
< ![CDATA[
I’ve experienced similar results, although I haven’t been able to determine when/why.
]]>
< ![CDATA[
use
setLabel(“label”, true)
]]>
< ![CDATA[
Oh, Duh! Persistent flag. Thanks Lukas Morawietz!
]]>
< ![CDATA[
Thanks, Lukas Morawietz I will try that.
]]>
< ![CDATA[
Side note, why is this function deprecated without replacement?
]]>
< ![CDATA[
Working great. Even after a phone reboot. Thanks again.
]]>
< ![CDATA[
Pierre Hébert why is this deprecated? i think it was due to the new name feature, but labels still need to be set…
]]>
< ![CDATA[
Lukas Morawietz it is deprecated on Item but not on Shortcut. get/setName are valid for all item types, but get/setLabel is only there for instances of Shortcut (Shortcut and Folder to be exact)
]]>
< ![CDATA[
Oh, that makes sense
]]>