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.
]]>(Next Post) Is it possible to implement : Folder always open ? »
< ![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]]
…
]]>
< ![CDATA[
Use “android.widget.EditText”
]]>
< ![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
]]>
< ![CDATA[
Here is the whole crash: https://pastebin.com/pWP7XPTx
]]>
< ![CDATA[
hm, yes, looks like an obfuscation problem.
]]>
< ![CDATA[
Sorry for forgetting the binding.
My bad.
Thanks for your response.
So, no way around that crash?
]]>
< ![CDATA[
Not from our side, pierre can do something
]]>