diff options
author | Adam Cohen <adamcohen@google.com> | 2012-06-28 18:12:10 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2012-07-09 14:49:19 -0700 |
commit | 487f7dd3059621527eb439d7d51d34e00293f9b1 (patch) | |
tree | 45c9cd5f452e44eff7bb043318947ab3422012aa /src/com/android/launcher2/CellLayout.java | |
parent | d51f33a6316c34fc69b8040946ed9a62519bb225 (diff) | |
download | android_packages_apps_Trebuchet-487f7dd3059621527eb439d7d51d34e00293f9b1.tar.gz android_packages_apps_Trebuchet-487f7dd3059621527eb439d7d51d34e00293f9b1.tar.bz2 android_packages_apps_Trebuchet-487f7dd3059621527eb439d7d51d34e00293f9b1.zip |
Trying to track down corrupt database / items disappearing
-> Adding logs for all database transactions
-> Adding sanity checks for items in folders, throwing exceptions
if they are violated
-> Reducing database upates when re-arranging items, only
update if values have changed
-> Removed some dead code from ItemInfo (isGesture?)
Change-Id: Ia5cd57d92082f633dbf4aa5d64612cbae2d82bb4
Diffstat (limited to 'src/com/android/launcher2/CellLayout.java')
-rw-r--r-- | src/com/android/launcher2/CellLayout.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 284db1bdb..c993f0e5b 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -2148,6 +2148,10 @@ public class CellLayout extends ViewGroup { // We do a null check here because the item info can be null in the case of the // AllApps button in the hotseat. if (info != null) { + if (info.cellX != lp.tmpCellX || info.cellY != lp.tmpCellY || + info.spanX != lp.cellHSpan || info.spanY != lp.cellVSpan) { + info.requiresDbUpdate = true; + } info.cellX = lp.cellX = lp.tmpCellX; info.cellY = lp.cellY = lp.tmpCellY; info.spanX = lp.cellHSpan; |