diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-02-02 13:52:53 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-02-16 13:50:14 -0800 |
commit | 43bf11d9c95f76c2dfeb625b23cb458df81252b3 (patch) | |
tree | ec2bbed88795b3c02621cd964be56f20d797c263 /src/com/android/launcher3/CellLayout.java | |
parent | 5a2edd65f2ca3d83b1672835831e2f5b2f16ab82 (diff) | |
download | packages_apps_Trebuchet-43bf11d9c95f76c2dfeb625b23cb458df81252b3.tar.gz packages_apps_Trebuchet-43bf11d9c95f76c2dfeb625b23cb458df81252b3.tar.bz2 packages_apps_Trebuchet-43bf11d9c95f76c2dfeb625b23cb458df81252b3.zip |
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
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index da12e67de..121b9fbed 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -2144,7 +2144,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { info.spanY = lp.cellVSpan; if (requiresDbUpdate) { - LauncherModel.modifyItemInDatabase(getContext(), info, container, screenId, + mLauncher.getModelWriter().modifyItemInDatabase(info, container, screenId, info.cellX, info.cellY, info.spanX, info.spanY); } } |