diff options
author | Adam Cohen <adamcohen@google.com> | 2012-07-09 14:52:25 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-07-09 14:52:25 -0700 |
commit | 92750b1d7852e47ebfcb21601789540edcbfae51 (patch) | |
tree | e3c19bbdbf2446751cb130d75d6a7b67fb79d5d5 /src/com/android/launcher2/CellLayout.java | |
parent | c489e9bd613178cdb8aaf61cbdae3a59c99a2c2c (diff) | |
parent | 487f7dd3059621527eb439d7d51d34e00293f9b1 (diff) | |
download | packages_apps_trebuchet-92750b1d7852e47ebfcb21601789540edcbfae51.zip packages_apps_trebuchet-92750b1d7852e47ebfcb21601789540edcbfae51.tar.gz packages_apps_trebuchet-92750b1d7852e47ebfcb21601789540edcbfae51.tar.bz2 |
Merge "Trying to track down corrupt database / items disappearing"
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 34c290a..aa8c132 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -2149,6 +2149,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; |