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?

]]>

9 Commentsto Hello, I have Tasker send a text to be put in an lightning item label.

  1. Anonymous says:

    < ![CDATA[

    I’ve experienced similar results, although I haven’t been able to determine when/why.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    use


    setLabel(“label”, true)

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Oh, Duh! Persistent flag. Thanks Lukas Morawietz​!

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Thanks, Lukas Morawietz​ I will try that.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Side note, why is this function deprecated without replacement?

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Working great. Even after a phone reboot. Thanks again.

    ]]>

  7. Anonymous says:

    < ![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…

    ]]>

  8. Anonymous says:

    < ![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)

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Oh, that makes sense

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *