V14a10
A script executed after desktop items have been removed throws nullpointer exception.
_____________
var items = getEvent().getScreen().getCurrentDesktop().getAllItems();
var l_item;
var d =getEvent().getScreen().getCurrentDesktop();
for(var i=items.length-1;i>=0;i–)
{
l_item=items[i];
d.removeItem(l_item);
}
getEvent().getScreen().runScript(“event”,null)
___________
The script “event” only displays an android toast message.
BTW: the desktop consists of items created by script. Executing the same script on the default desktop works.
]]>LL crash when refreshing the app drawer (or when unistalling app, but I guess the refresh caused by the app removal…
Log sent.
]]>Pierre Hébert do you have any plans to add this functionality?
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
Shortcut icon changer
This script will allow you to quickly and easily change the icon of a shortcut as suggested by me here https://plus.google.com/113157980543803349502/posts/CWBSDuJ5Vj7
Its extremely simple and after picking a character there’s no more error handling so make sure you pick something for every option and don’t press cancel or the script will fail. This is Pierre’s script i just edited it to make it easier and quicker to use for those who dont want to mess about with the code every time they want to change an icon (like me) hope you find it useful 👍
How to use: Set the script to show in the item menu.
Shortcut icon changer
This script will allow you to quickly and easily change the icon of a shortcut as suggested by me here https://plus.google.com/113157980543803349502/posts/CWBSDuJ5Vj7
Its extremely simple and after picking a character there’s no more error handling so make sure you pick something for every option and don’t press cancel or the script will fail. This is Pierre’s script i just edited it to make it easier and quicker to use for those who dont want to mess about with the code every time they want to change an icon (like me) hope you find it useful 👍
How to use: Set the script to show in the item menu.
V14a10 alpha
Edit: V14a11 one step forward, two steps back…
New bug fixes…
A bunch of issues related with scripts have been resolved. I am pushing this update as an alpha today, then I intend to migrate it to the beta channel if all goes well.
Now it’s the right time to report remaining bugs, even those that you consider harmless or those you already reported but I failed to fix 😉
Full ChangeLog: http://www.lightninglauncher.com/wordpress/change-log/
]]>
D5 Creation