go to specific app drawer view
go to specific app drawer view
Nigel Stewart asked for an easy way to do this, so here it is.
Just create a shortcut to this script and pass the value of the view you want to go to as Data. If this data is not present or invalid, the script will fall back to the value specified in the config section.
]]>« Hello, please forgive me if this has been covered, but is there a way to have shortcuts to alternate app draw views (Previous Post)
(Next Post) Repository »
< ![CDATA[
//config
var goto=1;
/*
1: My Drawer
2: Alphabetical
4: Used often
8: Recently launched
16: Recently updated
32: Currently running
*/
//endconfig
var d=LL.getEvent().getData();
if(d!=null&&!isNaN(parseInt(d)))goto=parseInt(d);
var p=LL.getContainerById(99).getProperties();
var old=p.getInteger(“adDisplayedModes”);
p.edit().setInteger(“adDisplayedModes”,goto).commit();
var i= new Intent(“android.intent.action.MAIN”);
i.setClassName(“net.pierrox.lightning_launcher_extreme”,”net.pierrox.lightning_launcher.activities.AppDrawerX”);
LL.startActivity(i);
setTimeout(function(){p.edit().setInteger(“adDisplayedModes”,old).commit();},100);
]]>
< ![CDATA[
Lukas Morawietz Perfect, thank you so much
]]>
< ![CDATA[
Good job! Is it possible doing more quickly loading?
]]>
< ![CDATA[
No, the app drawer loads as fast as it loads. That’s pierre’s job. Users complained a lot about the app drawer laoding slow, but as pierre hasn’t changed anything regarding that, I guess there is nothing he can do.
]]>
< ![CDATA[
I’ve found app draw load speed depends on device and amount of apps.. good reason to have specific devices for specific uses, or streamline one device to essentials
]]>
< ![CDATA[
Because i have THL 5000 phone (octacore 2GHz, 2GB RAM), and by your script is very slowly. Better (quickly) is normal ALL APPS icon shorctut. But absolutly best is loading by button (i have set double tap to home button, by xposed modul – gravity box), this option is absolutly best for immediate uploading.
Pierre Hébert
]]>
< ![CDATA[
Danbar Danbar
This script should be only minimally slower than the original shortcut. Do you have a lot of scripts in LL?
]]>
< ![CDATA[
hehe, absolutly no. Now only importer scripts, and your this script for test.
]]>
< ![CDATA[
weird…
]]>
< ![CDATA[
yes, now i watching with my wife to GRIMM movie. Later i doing video from my phone.
]]>
< ![CDATA[
Try with the “Minimize ram usage” option. It is slow because a lot of icons have to be loaded.
]]>