Detaching items via script seems to be not working for me at all in v14a10, untested on previous versions.
Detaching items via script seems to be not working for me at all in v14a10, untested on previous versions.
Tested with i.getProperties().edit().setBoolean(“i.enabled”,false).commit();
]]>« Shortcut icon changer (Previous Post)
< ![CDATA[
I tested it in previous alpha version but regressions are more than likely. I’ll have a look at this.
]]>
< ![CDATA[
You mean: i.onGrid ?
]]>
< ![CDATA[
Pierre Hébert
Yes, of couse. I mistyped that. Also, this seems to be only a problem if the item was just created. At least it works on random items on my desktop, but not on items of the music widget in the creation script.
Edit: To clarify: it also works on the created items if I edit them later on. Seems to be a less general problem than I initially thought.
]]>
< ![CDATA[
Unable to reproduce in a simpler scenario. It fails consistently when I try to use the “Add to desktop” from the multitool music widget, but works in any other scenario I tested.
]]>
< ![CDATA[
I’ll track the bug using Multitool then, thanks for the hint.
]]>
< ![CDATA[
Copy/pasting the setup script makes it work. I suspect correlation to other background problems.
]]>
< ![CDATA[
What is the symptom : is the property toggled but the item hasn’t the right geometry, or is it something else ?
]]>
< ![CDATA[
None of the items is detached, and most are widely out of place (probably because of the use of setSize and setPosition later)
]]>
< ![CDATA[
Update: Can reproduce by running the following script via tasker in Desktop mode:
var i=LL.getCurrentDesktop().addShortcut(“test”,new Intent(),0,0);
i.getProperties().edit().setBoolean(“i.onGrid”,false).commit();
]]>
< ![CDATA[
Can reproduce on Real Device, Emulator, Real Setup and Clean Setup.
]]>
< ![CDATA[
Thanks !
]]>