mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Removing some obsolete features
PROMISE_APPS_NEW_INSTALLS = true ENABLE_QUICKSTEP_WIDGET_APP_START = true FOLDER_NAME_SUGGEST = true ENABLE_PREDICTION_DISMISS = true HOTSEAT_MIGRATE_TO_FOLDER = false ENABLE_DEEP_SHORTCUT_ICON_CACHE = true ENABLE_THEMED_ICONS = true ENABLE_ALL_APPS_EDU = true EXPANDED_SMARTSPACE = false Bug: 241141733 Test: Presubmit Change-Id: I72c0c20ab7e214994dc3c3665c90e85d45991a7a
This commit is contained in:
@@ -152,10 +152,6 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
|
||||
public static final int DEFAULT_PAGE = 0;
|
||||
|
||||
private static final int DEFAULT_SMARTSPACE_HEIGHT = 1;
|
||||
|
||||
private static final int EXPANDED_SMARTSPACE_HEIGHT = 2;
|
||||
|
||||
private LayoutTransition mLayoutTransition;
|
||||
@Thunk final WallpaperManager mWallpaperManager;
|
||||
|
||||
@@ -561,10 +557,8 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
.inflate(R.layout.search_container_workspace, firstPage, false);
|
||||
}
|
||||
|
||||
int cellVSpan = FeatureFlags.EXPANDED_SMARTSPACE.get()
|
||||
? EXPANDED_SMARTSPACE_HEIGHT : DEFAULT_SMARTSPACE_HEIGHT;
|
||||
int cellHSpan = mLauncher.getDeviceProfile().inv.numSearchContainerColumns;
|
||||
CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, cellHSpan, cellVSpan);
|
||||
CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, cellHSpan, 1);
|
||||
lp.canReorder = false;
|
||||
if (!firstPage.addViewToCellLayout(mQsb, 0, R.id.search_container_workspace, lp, true)) {
|
||||
Log.e(TAG, "Failed to add to item at (0, 0) to CellLayout");
|
||||
|
||||
Reference in New Issue
Block a user