To the script experts:

To the script experts:

Why does Lightning crash when uncommenting the line with “onKeyPreIme” and you are pressing the back key on the soft keyboard while the EditText is focused?

Anything wrong with how I try to extend EditText? Should be correct, code-wise?

Use following code as createscript for a custom view:

bindClass(“android.widget.EditText”);

var edit = new JavaAdapter(EditText,

{

//onKeyPreIme: function(keyCode, event) { }

},LL.getContext());

return edit;

Any help would be much appreciated. Thanks guys.

]]>

7 Commentsto To the script experts:

  1. Anonymous says:

    < ![CDATA[

    I tried, and it crash consistently so it shouldn’t be hard for someone with more knowledge with that JavaAdapter thing ( Lukas Morawietz​?)



    It seems a class is missing. Maybe it is obfuscated?


    Here are the most important lines of the crash (because Google+ doesn’t let me write the full log).




    Caused by: java.lang.ClassNotFoundException: Didn’t find class “org.mozilla.javascript.Context” on path: DexPathList[[zip file “/data/app/net.pierrox.lightning_launcher_extreme-1/base.apk“],nativeLibraryDirectories=[/data/app/net.pierrox.lightning_launcher_extreme-1/lib/arm, /data/app/net.pierrox.lightning_launcher_extreme-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]


    ]]>

  2. Anonymous says:

    < ![CDATA[

    Use “android.widget.EditText”

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Lukas Morawietz I noticed that too (didn’t I say so? …checking… Nop)


    Anyway, with the correct binding that’s the crash that happens. With the wrong binding a simple ‘EditText is undefined’ is shown

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Here is the whole crash: https://pastebin.com/pWP7XPTx

    ]]>

  5. Anonymous says:

    < ![CDATA[

    hm, yes, looks like an obfuscation problem.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Sorry for forgetting the binding.


    My bad.


    Thanks for your response.



    So, no way around that crash?

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Not from our side, pierre can do something

    ]]>

Leave a Reply

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