summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/CellLayout.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2012-07-09 14:52:25 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-09 14:52:25 -0700
commit92750b1d7852e47ebfcb21601789540edcbfae51 (patch)
treee3c19bbdbf2446751cb130d75d6a7b67fb79d5d5 /src/com/android/launcher2/CellLayout.java
parentc489e9bd613178cdb8aaf61cbdae3a59c99a2c2c (diff)
parent487f7dd3059621527eb439d7d51d34e00293f9b1 (diff)
downloadandroid_packages_apps_Trebuchet-92750b1d7852e47ebfcb21601789540edcbfae51.tar.gz
android_packages_apps_Trebuchet-92750b1d7852e47ebfcb21601789540edcbfae51.tar.bz2
android_packages_apps_Trebuchet-92750b1d7852e47ebfcb21601789540edcbfae51.zip
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.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java
index 34c290a7c..aa8c1323d 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;