V12.2b1 beta

V12.2b1 beta

Edit: V12.2b2 published with bug fixes

No new feature, no bug fix, but a single change that I prefer to update unitary because it is tricky.

Various modifications in this beta aim to speed up the app drawer and large containers when they contains a lot of apps, as well as reducing the average amount of RAM used for images.

In some situations, mostly in the app drawer, you may see icons refreshing themselves, my hope is that it will not happen, or not too often.

Another area where I fear border effect is scripting. Due to the flexibility it offers, I wouldn’t be surprised is something goes wrong here.

If you don’t like to live on the bleeding edge, please skip this version, because it has the power to break things…

]]>

20 Commentsto V12.2b1 beta

  1. Anonymous says:

    < ![CDATA[

    Oh goody, broken stuff!

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Hmm, scripts regarding drawing pictures seems to be broken. I’ll try to understand a bit more what the error is and report it.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    TrianguloY​ thanks, but don’t spend too much time to pinpoint the problem, if you can provide a script that doesn’t work I should be able to find the issue relatively fast (I have some tools for that).


    I should use unitary tests for scripts.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    All the backgrounds (nine patches) of folders seems broken. All black background now. Restore backup or load style (backup) doesn’t work.


    Btw. Is the Version V12.2b2 correct? My LLX and playstore shows V12.2b1.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Roger Schreuders thanks, I can see this too (funnily on my device this is transparent but the bug is the same).


    Yes it was b1, I just edited the post, this bug was easy to fix 🙂

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Bug 1:


    Using rotate on a Canvas does nothing.


    I had a script which don’t work now (that script from Ren Shore which draws the animation of the three lines that converts into an arrow). I tried with this now:


    var im=i.getImage();


    var c=im.draw();


    var p=new Paint();


    p.setColor(0xffffffff);


    c.rotate(90);


    c.drawCircle(0,0,100,p);


    im.update();



    Bug 2: Roger Schreuders​​ was faster ;)

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Thank you TrianguloY ! I just found the reason for bug 2. Regarding bug 1, if you rotate a circle centered on (0,0), it should be the same result, or did I miss something?

    ]]>

  8. Anonymous says:

    < ![CDATA[

    I made that script without looking at the API, let me check better

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Ok. This is the condensed version of the script that worked before.




    var item=LL.getEvent().getItem();


    img=LL.createImage(100,100);


    item.setImage(img);


    //img=item.getImage();


    canvas = img.draw();


    var p = new Paint();


    p.setAntiAlias(true);


    p.setStrokeWidth(4);


    p.setColor(0xffffffff);


    canvas.drawLine(0,0,100,100,p);


    img.update();



    Now it does nothing.


    But even more, if you uncomment the four line, the created image is draw above the previous one, instead of replacing it.



    Perhaps I don’t fully understand images, and that worked before for some strange reason.


    How do I need to change that script to set the image to only the white diagonal line?

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Rereading my post I think that the problem is that setImage doesn’t work.

    ]]>

  11. Anonymous says:

    < ![CDATA[

    Josh Gray could you confirm whether the folder background image is a nine patch ?


    TrianguloY I will need to test this script to be sure (can’t do it now) but there are at least two issues: the first one is that Image.update() is buggy in the beta, it should fully replace the old version, not be drawn over (I understood why now). The second issue is that the commented line //img=item.getImage(); should not be commented because the argument given to setImage is not necessarily what you will retrieve through getImage. The implementation could copy, convert or modify it, this is a trap…

    ]]>

  12. Anonymous says:

    < ![CDATA[

    Pierre Hébert about the commented line. In the original script it wasn’t there. I added it to test.


    In previous versions of the app I can confirm that using setImage before drawing was ok and worked always. (Not the same with setCustomIcon, setDefaultIcon)

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Pierre Hébert I got JS Error IllegalArgumentException: width and height must be > 0.



    My script is invoked from item via resumed event. ​



    var item=LL.getEvent().getItem();


    var dic = item.getImage();


    var wd = dic.getWidth();


    var hg = dic.getHeight();


    var i = LL.createImage(wd, hg);

    ]]>

  14. Anonymous says:

    < ![CDATA[

    TrianguloY indeed it worked in the past but that was incorrect. I understand this is not intuitive though: in the next update (building it right now), I changed the behavior so that it works again. I know this is only a snippet and not a real life example but more generally Shortcut.setImage and Image.update will trigger a refresh, so best is to replace the last update call with a single setImage call.



    Mirko Kohler thanks! I found the bug! It will be fixed in the update too.

    ]]>

  15. Anonymous says:

    < ![CDATA[

    Just published an update to fix identified bugs.



    I am interested in knowing how you “feel” the app. Appart from the bugs, is the app more or less responsive? Did you notice some difference in behavior? This is quite subjective, but subjectivity matters!

    ]]>

  16. Anonymous says:

    < ![CDATA[

    In the V12.2b1



    I noticed that my games folder opens faster. It is a folder with only apps (and one widget) rotated and scaled. However I don’t noticed improvements in the app drawer open time, sorry. But I do when scrolling in the alphabetical list of apps. Now it seems even smoother.

    ]]>

  17. Anonymous says:

    < ![CDATA[

    In the latest beta:


    Set a shortcut with a 9patch as selected background.



    Run this:



    var i=LL.getEvent().getItem();


    i.setBoxBackground(i.getBoxBackground(“s”),”n”);



    Error:



    JavaException: java.lang.NullPointerException: Attempt to invoke virtual method ‘android.graphics.Bitmap$Config android.graphics.Bitmap.getConfig()’ on a null object reference



    The scripts worked before. Am I doing something wrong?

    ]]>

  18. Anonymous says:

    < ![CDATA[

    Hum… Nothing wrong in this script, that’s a bug, I will have a look at this.

    ]]>

  19. Anonymous says:

    < ![CDATA[

    i like change for v12.2b3…

    ]]>

  20. Anonymous says:

    < ![CDATA[

    Pierre Hébert


    As i can tell, LLX is on my Samsung S2 much more responsive. Absolutely love to work and experiment with LLX at the Moment 😘.


    Only one thing takes ages to edit with. But i need to make a video of it to explain. Report it later.

    ]]>

Leave a Reply

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