Adding a flag (enabled by default) to remove the all-apps button.
All apps can still be opened by clicking the caret. Bug: 29398447 Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
This commit is contained in:
@@ -2509,9 +2509,9 @@ public class Workspace extends PagedView
|
||||
// Don't show the message if we are dropping on the AllApps button and the hotseat
|
||||
// is full
|
||||
boolean isHotseat = mLauncher.isHotseatLayout(dropTargetLayout);
|
||||
if (mTargetCell != null && isHotseat) {
|
||||
if (mTargetCell != null && isHotseat && !FeatureFlags.NO_ALL_APPS_ICON) {
|
||||
Hotseat hotseat = mLauncher.getHotseat();
|
||||
if (hotseat.isAllAppsButtonRank(
|
||||
if (mLauncher.getDeviceProfile().inv.isAllAppsButtonRank(
|
||||
hotseat.getOrderInHotseat(mTargetCell[0], mTargetCell[1]))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user