====== About the script ====== * Purpose : This script allow you to craete shortcuts to specific app drawer categories * Author : F43nd1r * Current Version : 1.0 * Link : https://plus.google.com/115366157037831519359/posts/9ferTXkX7Rt ====== Changelog ====== * Version 1.0 (15/2/2015): initial release in wiki ====== How to use the script ====== * Create a shortcut to this script and pass the value of the view you want to go to as data * values: * 1: My Drawer * 2: Alphabetical * 4: Used often * 8: Recently launched * 16: Recently updated * 32: Currently running ====== Issues and Hints ====== * If the passed data is not present or invalid, it will fallback to the value specified in the config section //please report all bugs in the g+ community!// ====== Script ====== //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);