first backup should save things from the beginning of time
Bug: 12455866 Change-Id: Ie9a97ed4110e7b1ded21f609179b5d6ee7f0ead5
This commit is contained in:
@@ -297,7 +297,7 @@ public class LauncherBackupHelper implements BackupHelper {
|
|||||||
Key key = getKey(Key.FAVORITE, id);
|
Key key = getKey(Key.FAVORITE, id);
|
||||||
keys.add(key);
|
keys.add(key);
|
||||||
currentIds.add(keyToBackupKey(key));
|
currentIds.add(keyToBackupKey(key));
|
||||||
if (updateTime > in.t) {
|
if (updateTime >= in.t) {
|
||||||
byte[] blob = packFavorite(cursor);
|
byte[] blob = packFavorite(cursor);
|
||||||
writeRowToBackup(key, blob, out, data);
|
writeRowToBackup(key, blob, out, data);
|
||||||
}
|
}
|
||||||
@@ -365,7 +365,7 @@ public class LauncherBackupHelper implements BackupHelper {
|
|||||||
Key key = getKey(Key.SCREEN, id);
|
Key key = getKey(Key.SCREEN, id);
|
||||||
keys.add(key);
|
keys.add(key);
|
||||||
currentIds.add(keyToBackupKey(key));
|
currentIds.add(keyToBackupKey(key));
|
||||||
if (updateTime > in.t) {
|
if (updateTime >= in.t) {
|
||||||
byte[] blob = packScreen(cursor);
|
byte[] blob = packScreen(cursor);
|
||||||
writeRowToBackup(key, blob, out, data);
|
writeRowToBackup(key, blob, out, data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user