now browsing by tag
Pierre Hébert
var p=c.addPanel(0,0,100,100);
p.getContainer().getCellWidth()
Returns 0
]]>runScript doesn’t work well (if at all?) with script paths.
This bug is ages old, but I’m reporting it again as I came across it again:
items in script-created containers will not keep assigned on-grid positions if interacted with (e.g. when edit mode is entered on the container, or a script edits properties of the item).
Simplest reproducing script I found:
var c = getActiveScreen().getCurrentDesktop().addPanel(0,0,100,100).getContainer();
var s = c.addShortcut(“test”,new Intent(),0,0);
s.setCell(1,1,2,2);
Note that
– whether or not save() is called has no impact on this bug
– off-grid positions are kept
– I don’t know if only editing specific properties causes the “jump” back to 0/0, but going into edit mode does it for sure
]]>Unexpected behaviour: When the last script in the currently open folder gets deleted a new script in this folder is…
Expected behaviour: Active folder should switch to the first non-empty folder in the hierarchy. Only on the top level a new script schould be created.
]]>Please include the option to delete a script folder (e.g. by long press) and maybe rename could be useful too.
Is there a Lightning equivalent of LL.getAllDesktops() ? Maybe I’m just blind but I can’t find anything.
Happens only when script is run in background.
java.lang.NullPointerException: Attempt to invoke virtual method ‘net.pierrox.lightning_launcher.views.ItemLayout net.pierrox.lightning_launcher.views.u.m()’ on a null object reference
at net.pierrox.lightning_launcher.script.api.Folder.getContainer(Folder.java:101)
at java.lang.reflect.Method.invoke(Native Method)
at org.mozilla.javascript.bd.a(MemberBox.java:126)
at org.mozilla.javascript.bz.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.ao.a(Interpreter.java:1473)
at org.mozilla.javascript.ao.a(Interpreter.java:815)
at org.mozilla.javascript.an.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.a(ContextFactory.java:394)
at org.mozilla.javascript.dn.a(ScriptRuntime.java:3091)
at org.mozilla.javascript.l.a(Context.java:1172)
at org.mozilla.javascript.l.a(Context.java:1139)
at net.pierrox.lightning_launcher.script.b.a(ScriptExecutor.java:602)
at net.pierrox.lightning_launcher.script.b.a(ScriptExecutor.java:536)
at net.pierrox.lightning_launcher.util.FireReceiver.onReceive(FireReceiver.java:32)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2725)
at android.app.ActivityThread.-wrap14(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1421)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
]]>
D5 Creation