mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
Removing UI dependency from LauncherModel in case of 2-panel layout
Bug: 175939730 Bug: 192431856 Bug: 185515153 Test: Manual Change-Id: I8baa1cf9e5a8a04d5b8bc38c1f4b0755265cd8a9
This commit is contained in:
@@ -116,11 +116,6 @@ 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
|
||||
*/
|
||||
@@ -146,14 +141,6 @@ 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();
|
||||
}
|
||||
|
||||
@@ -459,10 +446,11 @@ public class BgDataModel {
|
||||
int FLAG_QUIET_MODE_CHANGE_PERMISSION = 1 << 2;
|
||||
|
||||
/**
|
||||
* Returns an IntSet of page numbers to bind first, synchronously if possible
|
||||
* Returns an IntSet of page ids to bind first, synchronously if possible
|
||||
* or an empty IntSet
|
||||
* @param orderedScreenIds All the page ids to be bound
|
||||
*/
|
||||
default IntSet getPagesToBindSynchronously() {
|
||||
default IntSet getPagesToBindSynchronously(IntArray orderedScreenIds) {
|
||||
return new IntSet();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user