OSDN Git Service

first backup should save things from the beginning of time
authorChris Wren <cwren@android.com>
Thu, 9 Jan 2014 16:54:15 +0000 (11:54 -0500)
committerChris Wren <cwren@android.com>
Thu, 9 Jan 2014 18:02:20 +0000 (13:02 -0500)
Bug: 12455866
Change-Id: Ie9a97ed4110e7b1ded21f609179b5d6ee7f0ead5

src/com/android/launcher3/LauncherBackupHelper.java

index 2a5ed69..a081c21 100644 (file)
@@ -297,7 +297,7 @@ public class LauncherBackupHelper implements BackupHelper {
                 Key key = getKey(Key.FAVORITE, id);
                 keys.add(key);
                 currentIds.add(keyToBackupKey(key));
-                if (updateTime > in.t) {
+                if (updateTime >= in.t) {
                     byte[] blob = packFavorite(cursor);
                     writeRowToBackup(key, blob, out, data);
                 }
@@ -365,7 +365,7 @@ public class LauncherBackupHelper implements BackupHelper {
                 Key key = getKey(Key.SCREEN, id);
                 keys.add(key);
                 currentIds.add(keyToBackupKey(key));
-                if (updateTime > in.t) {
+                if (updateTime >= in.t) {
                     byte[] blob = packScreen(cursor);
                     writeRowToBackup(key, blob, out, data);
                 }