Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5743aa9a authored by Chris Wren's avatar Chris Wren
Browse files

backup keys that might have slipped past

seems a little paranoid, but can't hurt.

Bug: 12455866
Change-Id: If9da4cc021ee4fac32c822a91fabda69bf3ff8aa
parent 5317c2b7
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -296,8 +296,9 @@ public class LauncherBackupHelper implements BackupHelper {
                final long updateTime = cursor.getLong(ID_MODIFIED);
                Key key = getKey(Key.FAVORITE, id);
                keys.add(key);
                currentIds.add(keyToBackupKey(key));
                if (updateTime >= in.t) {
                final String backupKey = keyToBackupKey(key);
                currentIds.add(backupKey);
                if (!savedIds.contains(backupKey) || updateTime >= in.t) {
                    byte[] blob = packFavorite(cursor);
                    writeRowToBackup(key, blob, out, data);
                }
@@ -364,8 +365,9 @@ public class LauncherBackupHelper implements BackupHelper {
                final long updateTime = cursor.getLong(ID_MODIFIED);
                Key key = getKey(Key.SCREEN, id);
                keys.add(key);
                currentIds.add(keyToBackupKey(key));
                if (updateTime >= in.t) {
                final String backupKey = keyToBackupKey(key);
                currentIds.add(backupKey);
                if (!savedIds.contains(backupKey) || updateTime >= in.t) {
                    byte[] blob = packScreen(cursor);
                    writeRowToBackup(key, blob, out, data);
                }