Block all application buttons in the CreateShortcut method in Launcher.java
Before you modify
View createshortcut (int layoutresid, viewgroup parent, Shortcutinfo info) {
Bubbletextview favorite = (Bubbletextview) minflater.inflate (
Layoutresid, parent, false);
Favorite.applyfromshortcutinfo (info, miconcache);
Favorite.setonclicklistener (this);
if (Info.itemtype = = LauncherSettings.Favorites.ITEM_TYPE_ALLAPPS
&& Info.geticon (miconcache) = = null) {
All Apps icon
drawable d =
Getresources (). getdrawable (R.drawable.all_apps_button_icon);
drawable d = mhotseat.getappsbuttonbitmap ();//Qijinling
Utilities.resizeicondrawable (d);
Favorite.setcompounddrawables (null, d, NULL, NULL);
Favorite.setontouchlistener (Gethapticfeedbacktouchlistener ());
}
Utilities.applytypeface (favorite);
return favorite;
}
After modification
*/
View createshortcut (int layoutresid, viewgroup parent, Shortcutinfo info) {
Bubbletextview favorite = (Bubbletextview) minflater.inflate (
Layoutresid, parent, false);
Favorite.applyfromshortcutinfo (info, miconcache);
Favorite.setonclicklistener (this);
if (Info.itemtype = = LauncherSettings.Favorites.ITEM_TYPE_ALLAPPS
&& Info.geticon (miconcache) = = null) {
All Apps icon
drawable d = getresources (). Getdrawable (
R.drawable.all_apps_button_icon);
Hide Menu
Favorite.setwidth (0);
Favorite.setheight (0);
Favorite.setvisibility (View.gone);
Utilities.resizeicondrawable (d);
Favorite.setcompounddrawables (null, d, NULL, NULL);
Favorite.setontouchlistener (Gethapticfeedbacktouchlistener ());
}
Utilities.applytypeface (favorite);
return favorite;
}
Then find the Disable_all_apps property in the Appscustomizepagedview class
No drawer true and vice versa
public static Boolean Disable_all_apps = true; property is set to TRUE or Faule
Android Launcher2 developed with drawers instead of drawers