OSDN Git Service

Fix serious data loss issue for folders and hotseat items
authorAdam Cohen <adamcohen@google.com>
Fri, 11 Apr 2014 01:06:59 +0000 (18:06 -0700)
committerAdam Cohen <adamcohen@google.com>
Fri, 11 Apr 2014 01:13:46 +0000 (01:13 +0000)
Change-Id: I37a5b44c670c2a1f99eb97b77cfdbc78534fdf91

bug 13964735

src/com/android/launcher3/LauncherProvider.java

index fa3a752..ad43cba 100644 (file)
@@ -804,7 +804,9 @@ public class LauncherProvider extends ContentProvider {
                 // which no longer exist. Since this can cause other problems, and since the user
                 // will never see these items anyway, we use database upgrade as an opportunity to
                 // clean things up.
-                removeOrphanedItems(db);
+
+                // TODO: this needs to be fixed, currently causes data loss.
+                //removeOrphanedItems(db);
                 version = 18;
             }