mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Add a feature flag to expand smartspace to three rows
In order to experiment with presenting more predicted content to the workspace I have added a flag to expand smartspace to two rows. This CL does not include any app relocation. If an app lives in a space the expanded smartspace will occupy, it will be removed from workspace. Change-Id: I38354dc81a34a495828cf7a69ddb04cc137e2e4e
This commit is contained in:
@@ -445,7 +445,8 @@ public class LoaderCursor extends CursorWrapper {
|
||||
if (item.screenId == Workspace.FIRST_SCREEN_ID) {
|
||||
// Mark the first row as occupied (if the feature is enabled)
|
||||
// in order to account for the QSB.
|
||||
screen.markCells(0, 0, countX + 1, 1, FeatureFlags.QSB_ON_FIRST_SCREEN);
|
||||
int spanY = FeatureFlags.EXPANDED_SMARTSPACE.get() ? 2 : 1;
|
||||
screen.markCells(0, 0, countX + 1, spanY, FeatureFlags.QSB_ON_FIRST_SCREEN);
|
||||
}
|
||||
occupied.put(item.screenId, screen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user