Add left widget panel to Launcher home when unfolded

Test: manual
Bug: 175939730
Change-Id: I9831e7fa95084db12953ec7cb2eb725e7549e01d
This commit is contained in:
Andras Kloczl
2021-05-26 15:02:52 +02:00
parent 024262cc03
commit dbf577af46
6 changed files with 100 additions and 16 deletions

View File

@@ -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();
}