mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Add left widget panel to Launcher home when unfolded
Test: manual Bug: 175939730 Change-Id: I9831e7fa95084db12953ec7cb2eb725e7549e01d
This commit is contained in:
@@ -116,6 +116,11 @@ public class BgDataModel {
|
||||
*/
|
||||
public int lastBindId = 0;
|
||||
|
||||
/**
|
||||
* Value that indicates if left widget panel is shown or not.
|
||||
*/
|
||||
public boolean isLeftPanelShown = false;
|
||||
|
||||
/**
|
||||
* Clears all the data
|
||||
*/
|
||||
@@ -141,6 +146,14 @@ public class BgDataModel {
|
||||
if (FeatureFlags.QSB_ON_FIRST_SCREEN || screenSet.isEmpty()) {
|
||||
screenSet.add(Workspace.FIRST_SCREEN_ID);
|
||||
}
|
||||
|
||||
if (isLeftPanelShown) {
|
||||
// We should add it even though there are no items on it.
|
||||
screenSet.add(Workspace.LEFT_PANEL_ID);
|
||||
} else {
|
||||
// We should NOT add it even though there are items on it.
|
||||
screenSet.remove(Workspace.LEFT_PANEL_ID);
|
||||
}
|
||||
return screenSet.getArray();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user