mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
Separating methods for updating the model to a sepatate class.
Removing static access to model update methods, to allow for better access control and testing Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
This commit is contained in:
@@ -52,14 +52,6 @@ public class AddWorkspaceItemsTaskTest extends BaseModelUpdateTaskTestCase {
|
||||
private AddWorkspaceItemsTask newTask(ItemInfo... items) {
|
||||
return new AddWorkspaceItemsTask(Provider.of(Arrays.asList(items))) {
|
||||
|
||||
@Override
|
||||
protected void addItemToDatabase(Context context, ItemInfo item,
|
||||
long screenId, int[] pos) {
|
||||
item.screenId = screenId;
|
||||
item.cellX = pos[0];
|
||||
item.cellY = pos[1];
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateScreens(Context context, ArrayList<Long> workspaceScreens) { }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user