mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +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:
@@ -336,7 +336,7 @@ public class FolderPagedView extends PagedView {
|
||||
info.cellY = newY;
|
||||
info.rank = rank;
|
||||
if (saveChanges) {
|
||||
LauncherModel.addOrMoveItemInDatabase(getContext(), info,
|
||||
mFolder.mLauncher.getModelWriter().addOrMoveItemInDatabase(info,
|
||||
mFolder.mInfo.id, 0, info.cellX, info.cellY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user