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

Commit 9cd567fb authored by Bryan Mawhinney's avatar Bryan Mawhinney
Browse files

Don't touch empty wallpaper sentinel every backup.

Even when the diffing algorithm is good (which it may not always be),
it isn't free to apply the diff server side.

Test: manual
Change-Id: I01859a57b0a0a974b541ce03f7c35a2977df7f7c
parent cb889759
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -115,8 +115,10 @@ public class WallpaperBackupAgent extends BackupAgent {
            // We always back up this 'empty' file to ensure that the absence of
            // storable wallpaper imagery still produces a non-empty backup data
            // stream, otherwise it'd simply be ignored in preflight.
            if (!empty.exists()) {
                FileOutputStream touch = new FileOutputStream(empty);
                touch.close();
            }
            fullBackupFile(empty, data);

            SharedPreferences prefs = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);